Smarty template engine integration for Flemwork