I\'m doing a program using Slim 2 that uses Twig as my templating engine. so It uses the syntax {{ foo }} in php file. On the other hand, I\'m using vue.js, it
{{ foo }}
Instead of changing delimiters, making components less reusable or using less readable double escaping mechanisms, you can use Twig's source function.
The source function returns the content of a template without rendering it: {{ source('template.html') }} {{ source(some_var) }}
The source function returns the content of a template without rendering it:
{{ source('template.html') }} {{ source(some_var) }}
Example: