Techniques for writing templates: includes and snippets, assets and images, safe output, common patterns, lists, and the page and request context.
Templates are where a site's structure and logic live. The pages in this section cover the techniques you use in them: breaking a page into includes and snippets, registering assets and rendering images, encoding output and guarding missing data, recipes for common patterns and lists, and reading the page and request context.