Pebble/Twig Templates: Rendering twice(i.e. nested templates)?

152 views Asked by At

Is there a way to render a template twice? For example:

{{ myTemplate }} 

where in my templating context, myTemplate => "{{ 2 + 2 }}" so the final output will become 4? In another words:

"{{ myTemplate }}" => "{{ 2 + 2 }}" => "4"

Is something like this possible with Pebble(or Twig since they are similar)?

0

There are 0 answers