mirror of
https://github.com/caddyserver/caddy.git
synced 2025-11-01 19:17:25 -04:00
Created a struct containing middleware.Context, Title, Markdown and the
variables from the user to use to render the template.
The title now can be accessed via {{.Title}}.
The variables can now be accessed via {{.Var.myVariableName}}.
12 lines
158 B
HTML
12 lines
158 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{{.Title}}</title>
|
|
</head>
|
|
<body>
|
|
{{.Include "header.html"}}
|
|
Welcome to {{.Var.sitename}}!
|
|
{{.Markdown}}
|
|
</body>
|
|
</html>
|