const classfantorepo::Templating
sys::Obj fantorepo::Templating
Templating helper to render mustache templates
- bottom
const static Str bottom := Templating.read(`/res/tpl/bottom.html`)
- formatSize
const static Func formatSize := |Str,|Str->Obj?|,Func->Obj?| { ... }
- formatTimestamp
const static Func formatTimestamp := |Str,|Str->Obj?|,Func->Obj?| { ... }
- help
const static Str help := Templating.read(`/res/tpl/help.html`)
- home
const static Str home := Templating.read(`/res/tpl/home.html`)
- login
const static Str login := Templating.read(`/res/tpl/login.html`)
- myPods
const static Str myPods := Templating.read(`/res/tpl/mypods.html`)
- notFound
const static Str notFound := Templating.read(`/res/tpl/404.html`)
- pod
const static Str pod := Templating.read(`/res/tpl/pod.html`)
- podList
const static Str podList := Templating.read(`/res/tpl/podlist.html`)
- read
- renderPage
Void renderPage(WebOutStream out, Str template, Str title, [Str:Obj]? params := ([Str:Obj]?)[:])
write the whole page (closes the stream)
- results
const static Str results := Templating.read(`/res/tpl/results.html`)
- settings
const SettingsService settings := Service.find(SettingsService#)
- showMeta
const static Func showMeta := |Str,|Str->Obj?|,Func->Obj?| { ... }
- top
const static Str top := Templating.read(`/res/tpl/top.html`)
- version
const static Str version := Templating.read(`/res/tpl/version.html`)