Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (29 sloc) 654 Bytes
This is our templates' base implementation.
{% interface
Partial {
Template writes a template implementing the Partial interface.
{% func Template(p Partial) %}
<title>Quicktemplate integration with Iris</title>
Header contents here...
<div style="margin:10px;">
{%= p.Body() %}
Footer contents here...
{% 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 %}
You can’t perform that action at this time.