Use filename as template name

Clearer debugging
Add option to fail if var not set and no default provided

Defaults to true.  Gawd this already needs to be refactored.