attepting to port catkin #20 dbg package to bloom for #32

Adds support for templating filenames as well as contents.