Embeds static content from files to Twig templates
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
Resources
Tests
Twig
.gitignore
.travis.yml
CHANGELOG.md
KGStaticBundle.php
README.md
composer.json
phpunit.xml.dist

README.md

KGStaticBundle

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