mixin slanWeb::SlanWeblet

slanWeb::SlanWeblet : web::Weblet

enhanced Weblet for rendering template.

compileJs

Str compileJs(Uri fwt, Map<Str,Str> env := ["fwt.window.root":"fwt-root"])

compile js file.

esc

Str? esc(Obj? obj)

escape the xml control characters

onService

virtual override Void onService()

render

virtual Void render(Uri view, Func<Void>? lay := null)

render the template

sendObj

Void sendObj(Obj? result)

setContentType

Void setContentType(Str? ext := null)

stash

Void stash(Str name, Obj? obj)

set param

stashId

Str? stashId()

id is the first word of unnecessary uri