Ignore .templ too for same reasons as .phtml.
Some safety checks for variables.
Merge pull request #7 from nubs/master

Ignore .templ too for same reasons as .phtml.