(Post-process) templating

Refactor to allow post-processing.  See #14.