mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
templates: Add {{#let}} block helper.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e83538167f
commit
f81cc16a0f
@@ -133,6 +133,8 @@ def tokenize(text: str) -> List[Token]:
|
||||
elif looking_at_handlebars_start():
|
||||
s = get_handlebars_tag(text, state.i)
|
||||
tag = s[3:-2].split()[0]
|
||||
if tag.startswith("*"):
|
||||
tag = tag[1:]
|
||||
kind = "handlebars_start"
|
||||
elif looking_at_handlebars_end():
|
||||
s = get_handlebars_tag(text, state.i)
|
||||
|
||||
Reference in New Issue
Block a user