gocuelang.org/go/pkg/text/template Index | Files

package template

import "cuelang.org/go/pkg/text/template"

Index

Functions

func Execute

func Execute(templ string, data cue.Value) (string, error)

Execute executes a Go-style template.

func HTMLEscape

func HTMLEscape(s string) string

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

func JSEscape

func JSEscape(s string) string

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

Source Files

manual.go pkg.go template.go

Version
v0.11.0-rc.1
Published
Nov 13, 2024
Platform
js/wasm
Imports
5 packages
Last checked
9 minutes ago

Tools for package owners.