Sorted out how to do views with Go html/template, how to put code in subdirectories for a namespace, and documented why Go's modules are so weird.
This commit is contained in:
parent
144a76a67a
commit
55f59d88b6
11 changed files with 155 additions and 53 deletions
5
views/index.html
Normal file
5
views/index.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{template "partials/header" .}}
|
||||
|
||||
<h1>{{.Title}}</h1>
|
||||
|
||||
{{template "partials/footer" .}}
|
Loading…
Add table
Add a link
Reference in a new issue