added a res.cRender() function for rendering component templates