Mercurial > piecrust2
view docs/api/02_components.md @ 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 | 20fcadaaf871 |
children |
line wrap: on
line source
--- title: Plugin Components --- Once you've [created a plugin][1], you need to make it provide new _components_. {% for comp in family.children -%} * [{{comp.title}}]({{comp.url}}) {% endfor %} [1]: {{apiurl('plugins')}}