Support for Chameleon templates in Lektor.
BSD-3-CLAUSE License
lektor-chameleon is a plugin for the Lektor <https://www.getlektor.com>
_
static site generator
that makes is possible to write the templates
using Chameleon <https://chameleon.readthedocs.io/>
_.
To use the plugin, add it to your project::
lektor plugin add lektor-chameleon
Templates must have the .pt
file extension.
Usage examples:
.. code:: html
message
All custom Lektor filters are available as functions:
asseturl <https://www.getlektor.com/docs/api/templates/filters/asseturl/>
_dateformat <https://www.getlektor.com/docs/api/templates/filters/dateformat/>
_datetimeformat <https://www.getlektor.com/docs/api/templates/filters/datetimeformat/>
_latformat <https://www.getlektor.com/docs/api/templates/filters/latformat/>
_latlongformat <https://www.getlektor.com/docs/api/templates/filters/latlongformat/>
_longformat <https://www.getlektor.com/docs/api/templates/filters/longformat/>
_markdown <https://www.getlektor.com/docs/api/templates/filters/markdown/>
_tojson <https://www.getlektor.com/docs/api/templates/filters/tojson/>
_url <https://www.getlektor.com/docs/api/templates/filters/url/>
_For convenience, the following Jinja filters have also been made available as functions:
filesizeformat <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.filesizeformat>
_indent <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.indent>
_striptags <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.striptags>
_truncate <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.truncate>
_wordwrap <https://jinja.palletsprojects.com/en/3.0.x/templates/#jinja-filters.wordwrap>
_Usage examples:
.. code:: html
Home page
link text