The disclosed embodiments include a method performed by computer system. The method can include retrieving a layout object including layout information, receiving an indication of a request for a formatted document, and determining that the formatted document should have multiple pages with a common layout feature. The method can further include dynamically generating a template for the formatted document based on the layout information of the layout object and generating the formatted document by using the template to create the multiple pages of the formatted document with the common layout feature.