templating of pages