5 ms·
How well does the {{}} syntax coexist with server-side template languages like Django's one which uses the exact same marker for placeholders?
by aitorciki 16y ago
How well does the {{}} syntax coexist with server-side template languages like Django's one which uses the exact same marker for placeholders?
- d0m 16y agoYou can use tags in your django templates do avoid that issue. For instance, I am using icanhaz which use mustache's templates ({{}}) and I inspired myself of a snippet called Verbatim. So, basically, in your template you do: <body> {% js_template test %} Here you can freely use {{}} because the surrounding tags make django ignore them. {% endjs_template %}