1<section id="blob">
2 {{ template "breadcrumb.tmpl" .CurrentFile }}
3
4 <pre class="blob">
5 {{- $file := "" -}}
6 {{- if .CurrentFile.IsSubmodule -}}
7 {{ $file = (.Submodule .CurrentFile) }}
8 {{- else -}}
9 {{ $file = .Blob }}
10 {{- end -}}
11
12 {{- with $file -}}
13 {{- if .IsBinary -}}
14 This is a binary file, clone the repository to access it.
15 {{- else -}}
16 {{- $lines := (getLines (.Contents)) -}}
17 {{- range $i, $line := $lines }}
18{{- $i = increment $i }}
19<code id="L{{ $i }}"><a href="#L{{ $i }}">{{ padNumber (len $lines) $i }}{{ $i }}</a>{{ . }}</code>
20 {{- end }}
21 {{- end -}}
22 {{- end -}}
23 </pre>
24</section>