diff --git a/README.md b/README.md index 0a6c9ed..fe8b503 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,10 @@ function. {# Combining view helpers #} {% set url = ( url('my/custom/route') ) %} + +{# Usage of layout helper to dynamically load templates #} +{# defined in view_manager.template_map in the config. #} +{% extends layout().getTemplate() %} ``` # Examples @@ -98,4 +102,4 @@ This let's ZfcTwig register its own renderer with view helpers that require it a view helpers that do not require one. As a caveat, you *must* register view helpers that require a renderer with ZfcTwig. An example can be seen in -`config/module.config.php` where the HelperConfig for the default navigation helpers is registered with ZfcTwig. \ No newline at end of file +`config/module.config.php` where the HelperConfig for the default navigation helpers is registered with ZfcTwig.