1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-13 10:30:42 +00:00

feat(Template): testing fs bindata

This commit is contained in:
Viktor Vassilyev
2018-11-05 22:58:59 +06:00
parent 2f00ad1602
commit 771fe35431
6 changed files with 428 additions and 0 deletions

3
testdata/views/blocks/block.tpl vendored Normal file
View File

@ -0,0 +1,3 @@
{{define "block"}}
<h1>Hello, blocks!</h1>
{{end}}

3
testdata/views/header.tpl vendored Normal file
View File

@ -0,0 +1,3 @@
{{define "header"}}
<h1>Hello, astaxie!</h1>
{{end}}

15
testdata/views/index.tpl vendored Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>beego welcome template</title>
</head>
<body>
{{template "block"}}
{{template "header"}}
{{template "blocks/block.tpl"}}
<h2>{{ .Title }}</h2>
<p> This is SomeVar: {{ .SomeVar }}</p>
</body>
</html>