add basic template->render to template.class