can set parent template before rendering.