Is there a way to use Twig as an Assetic filter?  What I want to do is have Twig parse my JavaScript files as Twig templates, and then pass them to Assetic so that they get combined and minified in production.  You might be scratching your head think...
I have the following code based on Symfony2 docs:      {% block javascripts %}          {% javascripts filter="?jsqueeze" output="js/app.js"             "%kernel.root_dir%/Resources/assets/js/one.js"             "%kernel.r...
Compressing linked JavaScript and CSS files is no big deal when using Assetic in my Symfony 2.8 project. But what about scripts that are directly embedded in the page using a script tag. These scripts are not modified in any way.   Is it possible to...
In my Symfony2 application, I am using the Zurb Foundation to built my layout on. This keeps giving me headaches... the css works pretty well but the js often does not work. The files are loaded and no errors are reported (Zurb does its job just fine...
I'm working with Symfony 2 with Twig and assetic file manager. I have high number of javascript files that have many dependencies. (Javascript prototypal inheritance)  I saw sprockets in action, and I see that assetic has also sprocketsfilter to...
I use Symfony2 and the assetic Bundle. (probleme when using the * sign to ask assetic to take all files)  Form what I have read here and there assetic allow to use multiple javascript file.  This work just fine when when I write all the file right be...
I want to add Javascript file that should be loaded in dev environment only, not in prod.   {% javascripts '@AppBundle/Resources/public/js/*' %} <script src="{{ asset_url }}"></script> {% endjavascripts %}   How can I modi...
So it's my understanding that in the symfony dev environment assets are generated on page load through the controller if use_controller is set to true.  This is however time consuming, and pages load much faster with it set to true. I use less an...
I need to use the TinyMCE javascript library in a Symfony2 project. Well, I'm following the for dummies tutorial for using this library. Hence, since I'm using the Symfony2 framework, I saved the library into my bundle Resouces/public/js and...
In my twig template I include javascript files like this:  {% block javascripts %}     {{ parent() }}     {% javascripts         "@SomeBundle/Resources/public/js/eventendpage.js"         "@SomeBundle/Resources/public/js/eventList.js"...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.