Skip to content

kgilden/KGStaticBundle

Repository files navigation

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

About

Embeds static content from files to Twig templates

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages