Added TextPage document type and TextPageTemplate.