aboutsummaryrefslogtreecommitdiff
path: root/templates/config.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-05-30 15:06:28 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-05-30 15:06:28 +0200
commit242ba7f412d4e54f21385afff3f2b884f57f6ced (patch)
tree574b05ad544b0473f53a66d474591751989add94 /templates/config.qtpl
parent2dd4cf35aab8324608a83d337459fd8354521b92 (diff)
downloadcerrado-242ba7f412d4e54f21385afff3f2b884f57f6ced.tar.gz
cerrado-242ba7f412d4e54f21385afff3f2b884f57f6ced.tar.bz2
cerrado-242ba7f412d4e54f21385afff3f2b884f57f6ced.zip
feat: Add navbar selection
Diffstat (limited to 'templates/config.qtpl')
-rw-r--r--templates/config.qtpl16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/config.qtpl b/templates/config.qtpl
new file mode 100644
index 0000000..c5146b8
--- /dev/null
+++ b/templates/config.qtpl
@@ -0,0 +1,16 @@
+{% code
+type ConfigPage struct {
+ Body []byte
+}
+%}
+
+{% func (p *ConfigPage) Title() %}Hello{% endfunc %}
+
+{% func (p *ConfigPage) Navbar() %}{%= Navbar(Config) %}{% endfunc %}
+
+{% func (p *ConfigPage) Content() %}
+{%z= p.Body %}
+{% endfunc %}
+
+{% func (p *ConfigPage) Script() %}
+{% endfunc %}