{% code type ConfigPage struct { Body []byte } %} {% func (p *ConfigPage) Title() %}Hello{% endfunc %} {% func (p *ConfigPage) Navbar() %}{%= Navbar(Config) %}{% endfunc %} {% func (p *ConfigPage) Content() %} <p>This is the configuration that is currently loaded</p> <div class="code-view"> {%z= p.Body %} </div> {% endfunc %} {% func (p *ConfigPage) Script() %} {% endfunc %}