Smarty templating learning