Fast, robust HTML templating engine
pip install piglet-templates==1.3.2
piglet-templates is a text and HTML templating engine in the genshi/kajiki templates family.
The Piglet template engine offers:
Piglet Template Engine Documentation | Repository
Example piglet template:
<py:extends href="layout.html">
<py:block name="content">
<h1>This is the content block.</h1>
<p>
Hello $user.firstnames $user.lastname!
</p>
<p py:for="verse in in poem">
<py:for each="line in verse">$line<br/></py:for>
</p>
</py:block>
</py:extends>
There's a text templating mode too:
Hello $user.firstnames $user.lastname! {% for verse in poem %} {% for line in verse %}$line {% end %} {% end %}
Piglet-templates is licensed under the Apache license version 2.0.
Piglet-templates is developed by Olly Cope and was created for skot.be