Marketing Site

/views/vsite/GoSource.html (561 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{% import (
"{{{ .Package }}}/app"
"{{{ .Package }}}/app/controller/cutil"
"{{{ .Package }}}/app/util"
"{{{ .Package }}}/views/components"
"{{{ .Package }}}/views/layout"
) %}

{% code type GoSource struct { layout.Basic } %}

{% func (p *GoSource) Body(as *app.State, ps *cutil.PageState) %}
<div class="card">
<h3>{%= components.SVGRefIcon(`app`, ps) %} {%s util.AppName %}</h3>
<pre>go install {{{ .Package }}}@latest</pre>
<p>
<a href="{{{ .Info.Sourcecode }}}"><button>Source Code</button></a>
</p>
</div>
{% endfunc %}