RenderableValue¶
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.
Public Functions¶
render¶
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¶
- context: (CtxText val | CtxHtmlAttr val | CtxUrlAttr val | CtxJsAttr val | CtxCssAttr val | CtxScript val | CtxStyle val | CtxComment val | CtxRcdata val | CtxError val)
- raw: String val
Returns¶
- String val