mirror of
https://github.com/pantor/inja.git
synced 2026-04-14 12:08:52 +00:00
Fixed set_* methods
This commit is contained in:
@@ -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("\\{\\{", "\\}\\}"); // Variables {{ }}
|
||||
env.set_comment("\\{#", "#\\}"); // Comments {# #}
|
||||
env.set_statement("\\{\\%", "\\%\\}"); // Statements {% %} for many things, see below
|
||||
env.set_line_statements("##"); // Line statement ## (just an opener)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user