update modules for smarty 3 template centric variables, and assign modules to the _template