Download the PHP package wake/silex-twig-assetic-integration-provider without Composer
On this page you can find all versions of the php package wake/silex-twig-assetic-integration-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wake/silex-twig-assetic-integration-provider
More information about wake/silex-twig-assetic-integration-provider
Files in wake/silex-twig-assetic-integration-provider
Package silex-twig-assetic-integration-provider
Short Description An integration library of Twig and Assetic works for Silex.
License MIT
Homepage https://github.com/wake/Twig-Assetic-Integration-Provider
Informations about the package silex-twig-assetic-integration-provider
Silex Twig Assetic Integration Provider
This is an integration library of Twig and Assetic works for Silex.
The original Twig extension of Assetic is not easy to use. There's a lot of work (code) to do and you need always to know which templates require assets.
This integration library will handle it automatically.
Installation
Add in your composer.json
with following require entry:
or using composer:
then run composer install
or composer update
.
Registering
Important: Make sure you are using TwigServiceProvider and have registered before this code. It override some Twig loaders to force it expode some template information.
Usage
Just as Assetic twig extension
Filter Auto Detecting
Twig Assetic Integration Provider provides Assetic filters auto detecting as below list:
CssMinFilter
- Description: Minifies CSS
- Filter name:
cssmin
- Requirement: natxet/CssMin
CssRewriteFilter
- Description: Fixes relative URLs in CSS assets when moving to a new URL
- Filter name:
cssrewrite
Feedback
Please feel free to open an issue and let me know if there is any thoughts or questions :smiley:
License
Released under the MIT license