MORE THAN A TEMPLATE ENGINE
summary
Company CMS moves from raw templates to a structured, XML-style page description called promar XML that designers can edit without touching HTML; back end maps named blocks to functions via decorator-based block functions and renders Mako fragments, preserving a small global context and injecting per-block data. The system uses preprocessors/postprocessors, dependency injection, and recursive rendering to avoid duplicate DB queries, supports mobile and landing-builder variants, lets external partners supply layouts safely, and has been rolled out incrementally across hundreds of sites with successful gradual redesigns.
AI-written summary · about
chapters (10)
- 0:00Introduction to template engines
- 4:57Problems with old CMS approach
- 9:32Introducing Promark markup language
- 12:00Template rendering with decorators
- 15:13Page structure and block constraints
- 17:17Recursive rendering process
- 21:13Handling generators and mobile versions
- 24:03Global context and dependency injection
- 26:35Outsourcing layout to partners
- 28:47Future of template systems
