Sandbox

/views/vsandbox/Run.html (470 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% import (
"{{{ .Package }}}/app"
"{{{ .Package }}}/app/controller/cutil"
"{{{ .Package }}}/views/components"
"{{{ .Package }}}/views/layout"
) %}

{% code type Run struct {
layout.Basic
Key string
Title string
Icon string
Result any
} %}

{% func (p *Run) Body(as *app.State, ps *cutil.PageState) %}
<div class="card">
<h3>{%= components.SVGRefIcon(p.Icon, ps) %}{%s p.Title %}</h3>
{%= components.JSON(p.Result) %}
</div>
{% endfunc %}