mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
templates: Remove context argument from {{#tr}} block helper.
It only had one nontrivial use, and it’s easily replaced using the
builtin {{#with}} block helper.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
2ead0fa824
commit
5fed442bb1
@@ -258,12 +258,11 @@ If you are passing a translated string to a Handlebars partial, you can use:
|
||||
The syntax for block strings or strings containing variables is:
|
||||
|
||||
```
|
||||
{{#tr context}}
|
||||
{{#tr}}
|
||||
Block of English text.
|
||||
{{/tr}}
|
||||
|
||||
var context = {'variable': 'variable value'};
|
||||
{{#tr context}}
|
||||
{{#tr}}
|
||||
Block of English text with a {variable}.
|
||||
{{/tr}}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user