WARNING: This bundle is still under developement and is not considered stable.
RogerCMS' twig extension adds 2 functions and one tag:
{% snippet 'snippet_name' %}
{{ page_url(page_slug) }}
- takes page slug as parameter
- generates a full url (concatenated with all ascendants)
{{ media_url() }}
- takes media name as parameter
Roger's TwigLoaderRepository extends also existing functions: include and extends by adding three keywords to them:
- page
- layout
- name
You can use them to retrieve required element by following type by its name {% extends 'layout:main' %}
,
{% include 'page:My Page' %}