{% import "git.gabrielgio.me/cerrado/pkg/u" %} {% code type GitItemBlobPage struct { Path []string Content []byte } %} {% func (g *GitItemBlobPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Tree) %}{% endfunc %} {% func (g *GitItemBlobPage) GitContent(name, ref string) %}
{% stripspace %} {% if len(g.Path) != 0 %} root/ {% for i, e := range g.Path[:len(g.Path)-1] %} {%s e %}/ {% endfor %} {%s u.LastOrZero(g.Path) %} {% else %} root/ {% endif %} {% endstripspace %}
{%z= g.Content %}
{% endfunc %}