KGStaticBundle
KGStaticBundle copied to clipboard
Embeds static content from files to Twig templates
KGStaticBundle
This bundle allows you to load static content from files using Symfony's shorthand "@" syntax.
Usage
{# in '/some/path/to/template.html.twig' #}
{{ file('@AcmeDemoBundle/Resources/files/hello.txt') }}
Installation
Add KGPagerBundle in your composer.json:
{
"require": {
"kgilden/static-bundle": "~1.0"
}
}
Tests
Simply run phpunit in the root directory for the full test suite.
Licence
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENCE