We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Volt and Vue.js

Hi Guys,

Recently decided to start using Vue.js, I'm currently using volt for my views, but there is an issue, the syntax is identical for variables.

Is there any way to escape the variables in volt? In Laravel for instance with blade syntax you escape it with and @ symbol at the start e.g. @{{ variableName }}

I know you can do {{ '{{' }} variableName {{ '}' }} but I absolutely hate this, any other way around it?

Cheers! Andre



8.1k
Accepted
answer

Thanks, wasn't aware can change delimiters, relativley new to vue.js

https://vuejs.org/api/#delimiters



133

data: { foo: "", }

<span v-text="foo"><span>

<span :text="foo"><span>