{% interface GitItemBase { Nav(name, ref string) GitContent(name, ref string) } %} {% code type GitItemPage struct { Name string Ref string GitItemBase } %} {% func (p *GitItemPage) Title() %}Git | {%s p.Name %}{% endfunc %} {% func (p *GitItemPage) Navbar() %}{%= Navbar(Git) %}{% endfunc %} {% func (p *GitItemPage) Content() %} {%= p.Nav(p.Name, p.Ref) %}
{%= p.GitContent(p.Name, p.Ref) %}
{% endfunc %} {% func (p *GitItemPage) Script() %} {% endfunc %}