wanze / TemplateEngineTwig

A ProcessWire module adding Twig templates to the TemplateEngineFactory.
MIT License
12 stars 11 forks source link

Doesn't work with Hanna Code? #16

Closed binarious closed 6 years ago

binarious commented 6 years ago

I tried to combine the twig template engine with Hanna Code (http://modules.processwire.com/modules/process-hanna-code/), but it doesn't seem to work. The tag doesn't get replaced with the actual code.

Template:

<p>{{ page.body|raw }}</p>

Any ideas?

wanze commented 6 years ago

The template engine factory only supports the rendering of pages, not hanna tags. You would need a custom module that hooks into the rendering process of these tags, then use TemplateEngineTwig to render the twig syntax.

binarious commented 6 years ago

Thanks, do you have a starting point (documentation or examples) for me?