Hacker News new | past | comments | ask | show | jobs | submit login

I use go templating to assemble Vue components. Luckily Go templates can switch from using {{ }} to any other delimiter. I use [[ ]]. It works well.

And that means I strip all "{{", "}}", "[[" and "]]" from any user input.




You can also change vuejs delimiters.

        var app = new Vue({ delimiters: ['${', '}'], ... });


Interesting. Do you happen to have examples of these templates?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: