Tac Tacelosky

Results 545 comments of Tac Tacelosky

What about dumping the routes as javascript constants instead of json, and importing it rather than calling ```javascript import 'fos_js_routes.js'; // instead of routes = require('../../public/js/fos_js_routes.json'); Routing.setRoutingData(routes); ```

I was poking around about how to create js rather than json, and discovered it already exists! And in fact, is the default. ```bash bin/console fos:js-routing:dump --target=assets/js/fos_js_routes.js --pretty-print ``` Generates...

@weaverryan it would be pretty cool to not have to run the dump step and have that done automatically. What's the level of effort? I assume it's less complicated than...

FWIW, I got this working. Install fos-routing from npm or jsdelivr Dump the js with a callback: ```bash bin/console fos:js-routing:dump --format=js --target=public/js/fos_js_routes.js --callback="export default " ``` ```html import Routing from...

Well, that would rock. I think @tobias-93 is the main contributor at this point, I'd love to get feedback from him or @willdurand or any of the other maintainers.

I started to tweak the documentation to include this, but it didn't quite fit. Step 5 talks about yarn and webpack. Assetmapper is different, because it requires that the routes...

I don't think I'll be able to do it, but wanted to bring up the issue hoping someone else with more experience would.

I'd like to be able to combine a set and if statement. ```twig {% if count = post.comments.count %} There are {{ count }} comments. {% endif %} ``` instead...

I find adding properties to objects to be complicated and hard to read. I'd like to be able to add an element to an object without doing the merge, e.g....

I'm not getting it anymore, perhaps they back ported the fix.