RenderPage template and macro