1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-28 12:30:18 +00:00

Revert "Merge pull request #4325 from flycash/revert1"

This reverts commit fad897346f, reversing
changes made to e284b0ddae.
This commit is contained in:
Ming Deng
2020-12-12 21:28:58 +08:00
parent fad897346f
commit debd68cbe4
455 changed files with 30003 additions and 4667 deletions

View File

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

3
test/views/header.tpl Normal file
View File

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

15
test/views/index.tpl 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>