Piglet Template Engine
======================
piglet-templates is a text and HTML templating engine in the genshi/kajiki
templates family.
The Piglet template engine offers:
- Template inhertitance through <py:extends>/<py:block> (similar to Jinja2)
- Compiles templates to fast python byte code.
- HTML templating: templates produce well formed HTML. Template variables are
autoescaped to protect against XSS attacks.
- Reusable template functions.
- Good i18n support.
- Clear tracebacks from exceptions raised in templates.
`Piglet Template Engine Documentation <https://ollycope.com/software/piglet/latest/>`_
\| `Repository <https://hg.sr.ht/~olly/piglet>`_
Example piglet template:
.. code:: html
<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 poem">
<py:for each="line in verse">$line<br/></py:for>
</p>
</py:block>
</py:extends>
There's a text templating mode too:
.. code::
Hello $user.firstnames $user.lastname!
{% for verse in poem %}
{% for line in verse %}$line
{% end %}
{% end %}
License
-------
Piglet-templates is licensed under the Apache license version 2.0.
Piglet-templates is developed by
`Olly Cope <https://ollycope.com/>`_
and was created for `skot.be <https://skot.be/>`_
Raw data
{
"_id": null,
"home_page": "https://ollycope.com/software/piglet/latest/",
"name": "piglet-templates",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "jinja2 jinja genshi kajiki mako kid html templating template engine chameleon",
"author": "Oliver Cope",
"author_email": "oliver@redgecko.org",
"download_url": "https://files.pythonhosted.org/packages/71/b3/2dbb15d2955160ff62b0be9a7ac7921dc7d96fd97636630a26ad003ac837/piglet-templates-1.3.1.tar.gz",
"platform": null,
"description": "Piglet Template Engine\n======================\n\npiglet-templates is a text and HTML templating engine in the genshi/kajiki\ntemplates family.\n\nThe Piglet template engine offers:\n\n- Template inhertitance through <py:extends>/<py:block> (similar to Jinja2)\n- Compiles templates to fast python byte code.\n- HTML templating: templates produce well formed HTML. Template variables are\n autoescaped to protect against XSS attacks.\n- Reusable template functions.\n- Good i18n support.\n- Clear tracebacks from exceptions raised in templates.\n\n`Piglet Template Engine Documentation <https://ollycope.com/software/piglet/latest/>`_\n\\| `Repository <https://hg.sr.ht/~olly/piglet>`_\n\nExample piglet template:\n\n.. code:: html\n\n <py:extends href=\"layout.html\">\n <py:block name=\"content\">\n <h1>This is the content block.</h1>\n <p>\n Hello $user.firstnames $user.lastname!\n </p>\n <p py:for=\"verse in poem\">\n <py:for each=\"line in verse\">$line<br/></py:for>\n </p>\n </py:block>\n </py:extends>\n\n\nThere's a text templating mode too:\n\n.. code::\n\n Hello $user.firstnames $user.lastname!\n\n {% for verse in poem %}\n {% for line in verse %}$line\n {% end %}\n {% end %}\n\n\nLicense\n-------\n\nPiglet-templates is licensed under the Apache license version 2.0.\n\nPiglet-templates is developed by\n`Olly Cope <https://ollycope.com/>`_\nand was created for `skot.be <https://skot.be/>`_\n",
"bugtrack_url": null,
"license": "Apache",
"summary": "Fast, robust HTML templating engine",
"version": "1.3.1",
"project_urls": {
"Homepage": "https://ollycope.com/software/piglet/latest/"
},
"split_keywords": [
"jinja2",
"jinja",
"genshi",
"kajiki",
"mako",
"kid",
"html",
"templating",
"template",
"engine",
"chameleon"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a0e8c8481a059dd7d5a5f37ddfd4799ed99febd0a91df04dd3115c4a5bd698aa",
"md5": "2b5d32d1b363a990eabdfe544148ea61",
"sha256": "33425757fdccf85b22c1654cbf7bfbe4d9fbcb25f06a479f1b0ddc2ea5ad5c2a"
},
"downloads": -1,
"filename": "piglet_templates-1.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2b5d32d1b363a990eabdfe544148ea61",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 67468,
"upload_time": "2024-04-03T18:43:20",
"upload_time_iso_8601": "2024-04-03T18:43:20.389093Z",
"url": "https://files.pythonhosted.org/packages/a0/e8/c8481a059dd7d5a5f37ddfd4799ed99febd0a91df04dd3115c4a5bd698aa/piglet_templates-1.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "71b32dbb15d2955160ff62b0be9a7ac7921dc7d96fd97636630a26ad003ac837",
"md5": "fbbcf0479a1f775e28baa2cfb4665a06",
"sha256": "2fe34cb6fef8d9003577744223546fed77be02d402819938bd71249ac685945a"
},
"downloads": -1,
"filename": "piglet-templates-1.3.1.tar.gz",
"has_sig": false,
"md5_digest": "fbbcf0479a1f775e28baa2cfb4665a06",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 51232,
"upload_time": "2024-04-03T18:43:24",
"upload_time_iso_8601": "2024-04-03T18:43:24.020527Z",
"url": "https://files.pythonhosted.org/packages/71/b3/2dbb15d2955160ff62b0be9a7ac7921dc7d96fd97636630a26ad003ac837/piglet-templates-1.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-03 18:43:24",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "piglet-templates"
}