Accept .tt as for templates
Move .tt extension to a constant
Remove unused local vars
Rename local var
Merge pull request #385 from spastorino/accept_tt_at_end

Accept .tt as for templates