Doc Browser

/views/vdoc/MarkdownPage.html (346 B)

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

{% code type MarkdownPage struct {
layout.Basic
Title string
HTML string
} %}

{% func (p *MarkdownPage) Body(as *app.State, ps *cutil.PageState) %}
<div class="card markdown">
{%s= p.HTML %}
</div>
{% endfunc %}