Reputation: 171
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)?
Upvotes: 0
Views: 180