agoragames/stache — pull request #22 by kategengler (2012-11-30 19:59:07+00:00)
Title: Able to use template files without format in extension for mustache. 

This commit allows me to use files without the format in the name, for example, a file named: template.mustache. I'm trying to share templates between client and server and removing the format from the file name was the path of least resistance for the asset pipeline.

I also believe this is a slight improvement in the case where one keeps the view classes not directly alongside the templates; the source already set on the template will be used if the template source does not contain `module`. This match seems a bit hackish, but it should, at worst, result in false positives (an extra read of the template) when the template contains `module` and you're not keeping your views alongside your templates.

I did not provide tests for handlebars. There are no tests for having a view class alongside the handlebars template and I don't think it would work. Also, the handlebars code appears to always use `template.source`.