Piglet: Fast Python Template Engine ==================================== Documentation contents ---------------------- .. _toc: .. toctree:: :maxdepth: 2 This page template-reuse python-api i18n directives builtin-functions texttemplates changelog .. _overview: Overview of Piglet templates -------------------------------- Piglet is a templating engine that compiles templates to fast python byte code. Piglet HTML templates look like this: .. code:: html Hello ${name}!
  • $item
Learn more about Piglet's :doc:`template directives `, or :doc:`how to use piglet's Python API `. Piglet also has a :doc:`text mode `: .. code:: text {% extends "base.txt" %} {% block "content" %} Hello ${name}! {% for item in bag %} - $item {% end %} {% end %} {% end %} Piglet also contains flexible :doc:`translation directives ` and is designed to work for internationalized applications. Read more in the :ref:`documentation contents `.