mirror of
https://github.com/pantor/inja.git
synced 2026-03-06 09:16:24 +00:00
@@ -89,9 +89,9 @@ env.set_element_notation(ElementNotation::Pointer); // (default) e.g. time/start
|
||||
env.set_element_notation(ElementNotation::Dot); // e.g. time.start
|
||||
|
||||
// With other opening and closing strings (here the defaults, as regex)
|
||||
env.set_variables("\\{\\{", "\\}\\}"); // Variables {{ }}
|
||||
env.set_comments("\\{#", "#\\}"); // Comments {# #}
|
||||
env.set_statements("\\{\\%", "\\%\\}"); // Statements {% %} for many things, see below
|
||||
env.set_expression("\\{\\{", "\\}\\}"); // Expressions {{ }}
|
||||
env.set_comment("\\{#", "#\\}"); // Comments {# #}
|
||||
env.set_statement("\\{\\%", "\\%\\}"); // Statements {% %} for many things, see below
|
||||
env.set_line_statement("##"); // Line statement ## (just an opener)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user