Pass the filename of the template to the factory

Mustache uses the file's extension when resolving
partials, so it's important that the actual file name
is used.
Merge pull request #136 from jliszka/template_name_fix

Pass the filename of the template to the factory