added flag for template recompilation
added error message when rendering non-existing template