Now using a master template (layout.html) to centralize most of the common html.

The other templates must be completely valid html: they all must have their own doctype declaration, head and stuff, and they can include part of the master template by using '<div th:include="layout :: header"></div>', for instance.