combined render-template with render-page