Refactor i18n, add templating for resource app
This commit is contained in:
parent
e4f17ca315
commit
161ea7fe0c
21 changed files with 432 additions and 152 deletions
9
templates/app/base.gohtml
Normal file
9
templates/app/base.gohtml
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ define "base" }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head><title>{{ .Title }}</title></head>
|
||||
<body>
|
||||
{{ template "content" . }}
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
5
templates/app/index.gohtml
Normal file
5
templates/app/index.gohtml
Normal file
|
@ -0,0 +1,5 @@
|
|||
{{ define "content" }}
|
||||
<h1>{{ .Greeting }}</h1>
|
||||
<p>{{ .IntroductionText }}</p>
|
||||
<a href="{{ .LogoutURL }}">{{ .LogoutLabel }}</a>
|
||||
{{ end }}
|
Reference in a new issue