From 242ba7f412d4e54f21385afff3f2b884f57f6ced Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 30 May 2024 15:06:28 +0200 Subject: feat: Add navbar selection --- templates/config.qtpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 templates/config.qtpl (limited to 'templates/config.qtpl') 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 %} -- cgit v1.2.3