openeuropa/ecl-twig-loader

Name: ecl-twig-loader

Owner: OpenEuropa

Description: Europa Component Library Twig loader.

Created: 2017-05-19 10:52:28.0

Updated: 2018-03-01 17:37:15.0

Pushed: 2018-02-21 16:27:58.0

Homepage: null

Size: 10

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Europa Component Library Twig loader

Build Status

Twig loader for Europa Component Library, it allows to load components by accessing them via a configurable namespace.

For example, given:

p

\OpenEuropa\Twig\Loader\EuropaComponentLibraryLoader;

der = new EuropaComponentLibraryLoader(['ecl', 'openeuropa'], '/path/to/components', '/root');
g = new Twig_Environment($loader);
put = $twig->loadTemplate('@ecl/logos')->render([]);

Then the following calls will load the ecl-logos component:

nclude '@ecl/logos' with {
o': 'https://ec.europa.eu',
itle': 'European Commission',

wig
nclude '@openeuropa/ecl-logos' with {
o': 'https://ec.europa.eu',
itle': 'European Commission',


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.