cerrado @ master

 1{% import "git.gabrielgio.me/cerrado/pkg/u" %}
 2
 3{% code
 4type GitItemBlobPage struct {
 5    Path []string
 6    Content []byte
 7}
 8%}
 9
10{% func (g *GitItemBlobPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Tree) %}{% endfunc %}
11
12{% func (g *GitItemBlobPage) GitContent(name, ref string) %}
13<div class="pathing">
14    {% stripspace %}
15    {% if len(g.Path) != 0 %}
16    <a href="{%s url(name, Folder, ref, Root, []string{}) %}">root/</a>
17    {% for i, e := range g.Path[:len(g.Path)-1] %}
18    <a href="{%s url(name, Folder, ref, Root, g.Path[:1+i]) %}">{%s e %}/</a>
19    {% endfor %}
20    <a>{%s u.LastOrZero(g.Path) %}</a>
21    {% else %}
22    <a>root/</a>
23    {% endif %}
24    {% endstripspace %}
25</div>
26<div class="code-view">
27{%z= g.Content %}
28</div>
29{% endfunc %}