Adapting Smarty Engine to templates names