This is our templates' base implementation. {% interface Partial { Body() } %} Template writes a template implementing the Partial interface. {% func Template(p Partial) %} Quicktemplate integration with Iris
Header contents here...
{%= p.Body() %}
{% endfunc %} Base template implementation. Other pages may inherit from it if they need overriding only certain Partial methods. {% code type Base struct {} %} {% func (b *Base) Body() %}This is the base body{% endfunc %}