Index template, implements the Partial's methods. {% code type Index struct {} %} {% func (i *Index) Body() %} <h1>Index Page</h1> <div> This is our index page's body. </div> {% endfunc %}