Changing extension ".html" to ".tpl"