Core

/views/Home.html (521 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!-- $PF_GENERATE_ONCE$ -->
{% import (
"{{{ .Package }}}/app"
"{{{ .Package }}}/app/controller/cutil"
"{{{ .Package }}}/app/util"
"{{{ .Package }}}/views/components"
"{{{ .Package }}}/views/layout"
) %}

{% code type Home struct {
layout.Basic
} %}

{% func (p *Home) Body(as *app.State, ps *cutil.PageState) %}
<div class="card">
<h3>{%= components.SVGRefIcon(`app`, ps) %}{%s util.AppName %}</h3>
<div class="mt">Welcome to {%s util.AppName %}, your new application!</div>
</div>
{% endfunc %}