mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-12-16 12:05:30 +00:00
added views
This commit is contained in:
1
views/routes/_globalcomp.tmpl
Normal file
1
views/routes/_globalcomp.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
This is a global component
|
||||
3
views/routes/body.tmpl
Normal file
3
views/routes/body.tmpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{{define "body"}}
|
||||
<p>Hello from body</p>
|
||||
{{end}}
|
||||
1
views/routes/components/_globalinnercomp.tmpl
Normal file
1
views/routes/components/_globalinnercomp.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
This is a global component inside of a components folder.
|
||||
1
views/routes/test_body/body.tmpl
Normal file
1
views/routes/test_body/body.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
This is a test body form test_body
|
||||
5
views/routes/test_body_component/body.tmpl
Normal file
5
views/routes/test_body_component/body.tmpl
Normal file
@@ -0,0 +1,5 @@
|
||||
This is a test body form test_body_component
|
||||
{{ template "testcomponent" . }}
|
||||
{{ template "testinnercomponent". }}
|
||||
|
||||
{{ template "seperate" }}
|
||||
@@ -0,0 +1,3 @@
|
||||
{{ define "seperate" }}
|
||||
This is a seperately defined component
|
||||
{{ end }}
|
||||
@@ -0,0 +1 @@
|
||||
This is a non-global component inside of a components dir
|
||||
1
views/routes/test_body_component/testcomponent.tmpl
Normal file
1
views/routes/test_body_component/testcomponent.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
This is a testcomponent
|
||||
4
views/routes/test_body_global_comp/body.tmpl
Normal file
4
views/routes/test_body_global_comp/body.tmpl
Normal file
@@ -0,0 +1,4 @@
|
||||
This is a test body form test_body_component
|
||||
{{ template "testcomponent" . }}
|
||||
{{ template "_globalcomp" . }}
|
||||
{{ template "_globalinnercomp" . }}
|
||||
1
views/routes/test_body_global_comp/testcomponent.tmpl
Normal file
1
views/routes/test_body_global_comp/testcomponent.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
This is a testcomponent
|
||||
1
views/routes/test_head_body/body.tmpl
Normal file
1
views/routes/test_head_body/body.tmpl
Normal file
@@ -0,0 +1 @@
|
||||
This is a test body form test_head_body
|
||||
2
views/routes/test_head_body/head.tmpl
Normal file
2
views/routes/test_head_body/head.tmpl
Normal file
@@ -0,0 +1,2 @@
|
||||
<!-- this is inside the head -->
|
||||
<meta name="hello"/>
|
||||
Reference in New Issue
Block a user