3 ms·
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 m
by marcus_holmes 8y ago
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.
- alain_gilbert 8y agoYou can also change vuejs delimiters. var app = new Vue({ delimiters: ['${', '}'], ... });
- kakoni 8y agoInteresting. Do you happen to have examples of these templates?