Remove -f and -g, for now, and process everything on each run.
Use Template::Toolkit to process input templates.