Currently, we use nunjucks symbol {{ }} for some of the MarkBind features, such as variables. The advantage of piggybacking on Nunjucks is that we don't have to write our own parser. But this approach can sometimes result in complications such as Nunjucks code getting interpreted as MarkBind code.
I wonder if the following would work:
- Use a different symbol for MarkBind code e.g.,
{< >}
- Fork Nunjucks and modify it to use our symbol instead of the default
- Use our version of Nunjucks (Munjucks? :-p) to process MarkBind syntax, after parsing the code through regular Nunjucks first (to process Nunjucks code).
Currently, we use nunjucks symbol
{{}}for some of the MarkBind features, such as variables. The advantage of piggybacking on Nunjucks is that we don't have to write our own parser. But this approach can sometimes result in complications such as Nunjucks code getting interpreted as MarkBind code.I wonder if the following would work:
{<>}