Small, simple and powerful template-engine for Python.
Project description
pyratemp is a small, simple and powerful template-engine for python.
For documentation, please read pyratemp.txt or pyratemp.html and the pyratemp-docstrings.
For more documentation of the background of pyratemp, some thoughts about template-engines in general, benchmarks and comparisons, see http://www.simple-is-better.org/template/
- Website:
- Author:
Roland Koebler <rk at simple-is-better dot org>
- Version:
0.2.4
- Requirements:
Python 2
- Files:
README
NEWS
LICENSE
pyratemp.py: the template-engine
tools.py: some convenience functions for pyratemp
pyratemp_tool.py: a small commandline-interface for the template-engine
__init__.py: small wrapper so you can “import the directory”
setup.py: distutils-setup.py
pyratemp.txt: the documentation (in reStructuredText)
pyratemp.html: the documentation, converted to html
example.html: example-template from the documentation
example.json: example-data from the documentation
- Installation:
use disutils, e.g. python ./setup.py install or python ./setup.py install --user
or simply copy or symlink this directory (or only pyratemp.py) to a directory which is found by Python’s “import”, e.g. into your project-directory
Test:
./pyratemp_tool.py -f example.json example.html
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.