added views

This commit is contained in:
Simon Martens
2024-11-10 00:04:37 +01:00
parent cd108bb5c5
commit dafa217003
131 changed files with 32550 additions and 0 deletions

View File

@@ -0,0 +1 @@
This is a global component

3
views/routes/body.tmpl Normal file
View File

@@ -0,0 +1,3 @@
{{define "body"}}
<p>Hello from body</p>
{{end}}

View File

@@ -0,0 +1 @@
This is a global component inside of a components folder.

View File

@@ -0,0 +1 @@
This is a test body form test_body

View File

@@ -0,0 +1,5 @@
This is a test body form test_body_component
{{ template "testcomponent" . }}
{{ template "testinnercomponent". }}
{{ template "seperate" }}

View File

@@ -0,0 +1,3 @@
{{ define "seperate" }}
This is a seperately defined component
{{ end }}

View File

@@ -0,0 +1 @@
This is a non-global component inside of a components dir

View File

@@ -0,0 +1 @@
This is a testcomponent

View File

@@ -0,0 +1,4 @@
This is a test body form test_body_component
{{ template "testcomponent" . }}
{{ template "_globalcomp" . }}
{{ template "_globalinnercomp" . }}

View File

@@ -0,0 +1 @@
This is a testcomponent

View File

@@ -0,0 +1 @@
This is a test body form test_head_body

View File

@@ -0,0 +1,2 @@
<!-- this is inside the head -->
<meta name="hello"/>