pages/build-page for applying a template to a page