diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-12 02:52:22 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-12 02:53:52 +0300 |
commit | d05ea66f4bbcf0cc5c8908f3435c68de1b070fa1 (patch) | |
tree | 7c7a769206646f2b81a0eda0680f0be5033a4197 /pkg/tpl/profile.templ |
Начальная версияv0.0.1
Diffstat (limited to 'pkg/tpl/profile.templ')
-rw-r--r-- | pkg/tpl/profile.templ | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/tpl/profile.templ b/pkg/tpl/profile.templ new file mode 100644 index 0000000..61a9221 --- /dev/null +++ b/pkg/tpl/profile.templ @@ -0,0 +1,17 @@ +package tpl + +import "go.neonxp.ru/framework/pkg/model" + +templ Profile(user *model.User) { + @Layout() { + <article class="grid"> + <div> + <hgroup> + <h1>{ user.Username }</h1> + <p>{ user.Email }</p> + </hgroup> + </div> + <div></div> + </article> + } +} |