blob: b3df50eccb2571a37adfd630c7437caebdf1eb5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{% 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 %}
|