- commit
- ae2f719693034e55243e7e4929b1bd1eb92b99c9
- parent
- 4f66dad2e097c08893fece897dd5df0ca340b497
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-07-04 12:56
fix readme: {{.}} is actually supported
Diffstat
| M | README.md | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
@@ -31,13 +31,13 @@ output = stache.render(template, {'foo': True, 'bar': 'Hello world!'}, lambda x:
31 31 template = stache.parse('{{#highlight}}{{code}}{{/highlight}}')
32 32 output = stache.render(template, {'code': …, 'highlight': highlight}, escape)
33 33 ```
-1 34 - `.` to access the current context object: `{{.}}`
34 35 - context inheritance: you access variables from the outer contexts (unless they are shadowed)
35 36 - lines with standalone template tags are removed from the output
36 37
37 38 # Not supported
38 39
39 40 - changing delimiters
40 -1 - `.` to access the current context object: `{{.}}`
41 41 - `.` to go down the context hierarchy: `{{foo.bar}}`
42 42 - `{{{foo}}}` for safe variables (use `{{&foo}}` instead)
43 43 - multi line comments