kgilden/static-bundle

Render content from files in Twig templates

v1.1.0 2016-03-12 10:15 UTC

This package is auto-updated.

Last update: 2024-12-21 20:30:24 UTC


README

Build Status

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