Jinja [http://jinja.pocoo.org/] is a great templating language that's used with
Python. One of the easiest ways to not repeat yourself in Jinja is to use
macros.
Let's say you want to build a blog. You may want a blog that makes HTML like
this:
My Blog
Featured