Generate templates dynamically

This patch makes it possible to generate HTML from rST, which eliminates
the need to compile templates.

Closes #4.