Cecil logo Cecil

Dynamic content

You can create dynamic content in a page by using the template_from_string Twig function.

{{ include(template_from_string(page.content, "dynamic content for page " ~ page.id)) }}

With this, you can use any page variable in the body of the page.

--
var: 'value'
---
The value of `var` is {{ page.var }}.