config.templatesFn is optional, so should use an empty object by default
Merge pull request #12 from andrewburgess/fix-templatesfn-missing

config.templatesFn is optional, so should use an empty object by default