Define a page rendering method.