shapecode / twig-collector-extension-bundle
Symfony Bundle for shapecode/twig-collector-extension.
Installs: 1 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ~5.5|~7.0
- shapecode/twig-collector-extension: ~1.3
- symfony/config: ~2.8|~3.0|~4.0
- symfony/dependency-injection: ~2.8|~3.0|~4.0
- symfony/http-kernel: ~2.8|~3.0|~4.0
- symfony/twig-bundle: ~2.8|~3.0|~4.0
This package is auto-updated.
Last update: 2023-12-03 12:19:38 UTC
README
Install instructions
Via Composer
$ composer require shapecode/twig-collector-extension-bundle
Enable the bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Shapecode\Bundle\TwigCollectorBundle\ShapecodeTwigCollectorBundle(), ); }
Usage
collect stuff over all templates
{% collector stylesheets %} <style> .body { margin-bottom: 10px; } </style> {% endcollector %}
... and output it at a specific line
{% collection stylesheets %}