Download the PHP package fousky/jsblock without Composer
On this page you can find all versions of the php package fousky/jsblock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fousky/jsblock
More information about fousky/jsblock
Files in fousky/jsblock
Download fousky/jsblock
More information about fousky/jsblock
Files in fousky/jsblock
Vendor fousky
Package jsblock
Short Description Collect & render javascripts at the end of your template.
License MIT
Package jsblock
Short Description Collect & render javascripts at the end of your template.
License MIT
Keywords twig extension
Please rate this library. Is it a good library?
Informations about the package jsblock
JSBlockBundle
The Symfony JSBlockBundle gives you a chance to collect javascript across all TWIG templates (e.g. forms) and render them at the end of your layout (or anywhere you want them).
1. Install it by composer
2. Register bundle in Kernel
3. Render collected javascripts to your main template
I assume you have the main template layout.html.twig
, so add {% jsblock 'render' %}
before closing </body>
tag.
Of course you can put this tag anywhere you want to render collected javascripts.
4. Collect javascripts anywhere
Now you can collect javascripts anywhere you want.
You have to start collecting by tag: {% jsblock 'start' %}
and close it by tag {% jsblock 'stop' %}
.
All versions of jsblock with dependencies
PHP Build Version
Package Version
The package fousky/jsblock contains the following files
Loading the files please wait ....