Skip to content

Differentiate MarkBind syntax from Nunjucks? #859

Description

@damithc

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-Syntaxs.UnderDiscussionThe team will evaluate this issue to decide whether it is worth adding

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions