Skip to content

RenderableValue

[Source]

Determines how a template value is rendered within an HTML context. The renderer passes the current HTML context and the raw string value; the implementation decides whether and how to escape.

interface val RenderableValue

Public Functions

render

[Source]

fun val render(
  context: (CtxText val | CtxHtmlAttr val | CtxUrlAttr val | 
    CtxJsAttr val | CtxCssAttr val | CtxScript val | 
    CtxStyle val | CtxComment val | CtxRcdata val | 
    CtxError val),
  raw: String val)
: String val

Parameters

Returns