Templates
A template is basically just a Golang .tmpl
file containing some variables.
These variables must be specified inside the gauguin.yaml
file under the params
key.
These variables will be injected in your template at runtime.
Let's see an example template:
If you're new to Golang, you may be wandering: "wtf is that {{.strange}}
syntax?"
well, this is a variable! Every query parameter will be mapped to a variable inside the template.
Template can also contain some logic, but please refer to the official documentation for that.
Last updated