all repos — quartzgun @ cd06fc04864bf9c0fa9156af013bf9b6572ad76e

lightweight web framework in go

testData/templates/paramTest.html (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ $params := (.Context).Value "params" }}

<!DOCTYPE html>
<html lang='en'>
  <head>
    <meta charset='utf-8'>

    <meta name='viewport' content='width=device-width,initial-scale=1'>
    <link rel='stylesheet' type='text/css' href='/style.css'>
    <link rel='shortcut icon' href='/favicon.ico'>
    <title>test &mdash; thing</title>
  </head>
  <body>
    <header><h1>nilFM</h1></header>
    <main>
      {{ $params.Thing }}
    </main>
  </body>
</html>