symfony - How to compress inline Javascript in twig -


I would like to know whether it is possible to insert an inline javascript twig file in Symphony 2 via yui compressor.
as a JS code in talk file & lt; Script & gt; /% JS code% / & lt; / Script & gt;
The doctor tells that it works for .js files but does not mention inline javascript

me Allow me to tell you how I did this:
Install the bundle:

Br

  & lt; Script type = "text / javascript" & gt; {% Jshrink%} $ (document) .ready (function () {//.}); {% Endjshrink%} & lt; / Script & gt;  

PS: If you are not using Symphony then you can download library:


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -