dont do a require each time a template is accessed