stache

git clone https://git.ce9e.org/stache.git

commit
ab06c20057c085d4e4974821ab6044f0b0458e28
parent
a9e74fc024efe88b4654df94fc047595fa41d273
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-07-04 13:03
mention missing variables

Diffstat

M README.md 1 +

1 files changed, 1 insertions, 0 deletions


diff --git a/README.md b/README.md

@@ -32,6 +32,7 @@ output = stache.render(template, {'foo': True, 'bar': 'Hello world!'}, lambda x:
   32    32 	output = stache.render(template, {'code': …, 'highlight': highlight}, escape)
   33    33 	```
   34    34 -	`.` to access the current context object: `{{.}}`
   -1    35 -	missing variables are treated as empty strings/falsy
   35    36 -	context inheritance: you access variables from the outer contexts (unless they are shadowed)
   36    37 -	lines with standalone template tags are removed from the output
   37    38