I've long wanted to be able to use a simple template engine to create headers and footers on websites. I've been using the PHP include statement for this purpose, but I would really like to use the Python Jinja2 engine instead.
It appears I may be able to work on my bluehost web hosting account. Here is what I did:
- Edit the .bash_profile file and add the following:
PYTHONPATH=$HOME/lib/python export PYTHONPATH
- Download the Jinja2 source tarball from here.
- Extract the source directory from the .tar.gz file and cd into the new directory.
- Run: python setup.py install --home=~ (see this for more on that ;-)