smarty compatibility

the template must have the extension: *.tpl