HelloWorld
HelloWorld

Reputation: 171

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

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

Answers (0)

Related Questions