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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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',