text/template

CUE v0.18.0

Functions

Execute

cue
Execute: func(templ: string, data: _) -> string

Execute executes a Go-style template.

HTMLEscape

cue
HTMLEscape: func(s: string) -> string

HTMLEscape returns the escaped HTML equivalent of the plain text data s.

JSEscape

cue
JSEscape: func(s: string) -> string

JSEscape returns the escaped JavaScript equivalent of the plain text data s.

Install CUE