webpack: Enable explicitPartialContext for handlebars-loader.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-15 18:24:11 -08:00
committed by Tim Abbott
parent 44c50b3e64
commit e172c717f7
75 changed files with 130 additions and 124 deletions

View File

@@ -153,7 +153,7 @@ def tokenize(text: str, template_format: str | None = None) -> list[Token]:
kind = "handlebars_partial"
elif looking_at_handlebars_partial_block():
s = get_handlebars_partial(text, state.i)
tag = s[5:-2]
tag = s[5:-2].split(None, 1)[0]
kind = "handlebars_partial_block"
elif looking_at_html_start():
s = get_html_tag(text, state.i)