Reading the docs wasn't particularly helpful and I want to know if the structure
{{header}}
{{content that always changes}}
{{footer}}
is achievable with golang.
Reading the docs wasn't particularly helpful and I want to know if the structure
{{header}}
{{content that always changes}}
{{footer}}
is achievable with golang.
Using text/template:
Code to render it to Stdout
main.tmpl:
foot.tmpl:
head.tmpl:
This will result in:
Using html/template will be extremely similar.