I’m wondering if there is a way to process twig in the text of a Theme field, the only thing I could find pre-existing was the evaluate()
function but that expects just valid twig content.
e.g. the template I’m working on has a Copyright Footer
field of type markdown
and it’s rendered into the footer of the template using the markdown
filter provided in GRAV.
{{ theme_config.copyrightFooter|markdown }}
So text like this:
© My Company, 2017
_Sydney, Australia_
Renders like this:
© My Company, 2017
Sydney, Australia
Ideally I’d like to be add some dynamic elements, like a date range for the copyright e.g.
© My Company, 2001 — {{ "now"|date("Y") }}
_Sydney, Australia_