pongo2 icon indicating copy to clipboard operation
pongo2 copied to clipboard

Change template delimiters

Open unknwon opened this issue 11 years ago • 7 comments

Able to change {{}} to something else, e.g.:[[]].

Current one conflicts with Angular JS.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6928514-change-template-delimiters?utm_campaign=plugin&utm_content=tracker%2F3654947&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F3654947&utm_medium=issues&utm_source=github).

unknwon avatar Dec 10 '14 22:12 unknwon

You can use the verbatim-tag in such cases; see the documentation here:

https://docs.djangoproject.com/en/dev/ref/templates/builtins/#verbatim

Does this solve your issue?

flosch avatar Dec 11 '14 07:12 flosch

Kind of ... but I think this works best for large piece of avoidance, when write web apps, AngularJS may be heavy mixed with Go template.

unknwon avatar Dec 11 '14 07:12 unknwon

Let me put it on the TODO, but since we have verbatim it's not high prioritized.

flosch avatar Dec 11 '14 07:12 flosch

Thanks, anyway.

unknwon avatar Dec 11 '14 07:12 unknwon

+1 for this feature.

hilyjiang avatar Jan 17 '15 08:01 hilyjiang

+1 for this feature.

cxjava avatar Jul 23 '15 12:07 cxjava

+1 for this feature.

fdelbos avatar Jun 17 '21 10:06 fdelbos