Mercurial > piecrust2
view tests/bakes/test_variant.yaml @ 907:3e69f18912f5
jinja: Remove Twig compatibility, add timer, improve code.
- Add a timer for keeping track of extensions' performance.
- Use the `select_template` function from Jinja to cut down on a few lines
of code.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 23 Jul 2017 08:30:47 -0700 |
parents | 894d286b348f |
children | 72f17534d58e |
line wrap: on
line source
--- config: what: not good config_variant: test in: pages/_index.md: 'This is {{what}}.' configs/test.yml: 'what: awesome' out: index.html: 'This is awesome.' --- config: what: not good config_values: what: awesome in: pages/_index.md: 'This is {{what}}.' out: index.html: 'This is awesome.'