aboutsummaryrefslogtreecommitdiff
path: root/templates/about.go.html
blob: ebd212f5fb6b244c4bccd0a62b778fbbcdfb7735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<style>.stx_root{color: rgb(255,255,255);background-color: rgb(33,33,33);}.stx2{color: rgb(220,150,28);font-weight: bold;}.stx3{color: rgb(181,120,206);}.stx4{color: rgb(70,70,240);}.stx5{color: rgb(254,254,91);font-weight: bold;}.stx6{color: rgb(115,158,213);font-weight: bold;}.stx7{color: rgb(24,212,236);}.stx8{color: rgb(139,15,127);font-weight: bold;}.stx9{color: rgb(11,84,118);}.stxa{color: rgb(31,145,31);font-weight: bold;}.stxb{color: rgb(0,0,0);}</style><div class="stx_root"><pre><code><span class="stxa">// about page is yet to be written ;)</span>
<span class="stxa">// come back later</span>

<span class="stx4">package</span> <span class="stx4">lzcnt</span>

<span class="stx4">import</span> <span class="stx2">"net/http"</span>

<span class="stx4">func</span> (<span class="stx4">s</span> *<span class="stx4">Server</span>) <span class="stx5">aboutPage</span>(<span class="stx4">w</span> <span class="stx4">http.ResponseWriter</span>, <span class="stx4">r</span> *<span class="stx4">http.Request</span>) {
	<span class="stx4">payload</span> := <span class="stx4">map</span>[<span class="stx4">string</span>]<span class="stx4">any</span>{
		<span class="stx2">"Page"</span>:  <span class="stx2">"about.go.html"</span>,
		<span class="stx2">"Title"</span>: <span class="stx2">"About"</span>,
	}

	<span class="stx5">tmpl.ExecuteTemplate</span>(<span class="stx4">w</span>, <span class="stx2">"index.html"</span>, <span class="stx4">payload</span>)
}
</code></pre></div>