compiling templates with given module name