kgilden / static-bundle
Render content from files in Twig templates
Installs: 11 090
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 3
Forks: 4
Open Issues: 0
Requires
- php: >=5.4.0
- symfony/framework-bundle: ^2.0|^3.0
- twig/twig: ^1.12|^2.0
This package is auto-updated.
Last update: 2024-11-21 20:17:53 UTC
README
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