New abstract generator and document structure with templates and layout
mechanism