Templates

Templates can be used to display controls on multiple Pages without having to add those controls to each page.

Add common application features, such as menus and footers, to a template and assign the template to multiple Pages.

When a Stadium page is rendered to html, the template and the page are merged together.

By default, Pages in Stadium are all assigned an empty template called "DefaultTemplate".



How it works

1. Page contains a form and a Template property that is set to "DefaultTemplate":

2. The DefaultTemplate contains a logo and a menu in the header, and a link in the footer:

3. When generated, the template and the page are merged:

Last updated