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:
Anders Kaseorg
2021-04-13 18:04:02 -07:00
committed by Tim Abbott
parent 2ead0fa824
commit 5fed442bb1
49 changed files with 104 additions and 108 deletions

View File

@@ -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}}
```