type github.com/google/safehtml/template.context
78 uses
github.com/google/safehtml/template (current package)
context.go#L18: type context struct {
context.go#L42: func (c context) eq(d context) bool {
escape.go#L26: c, _ := tmpl.esc.escapeTree(context{}, node, name, 0)
escape.go#L72: output map[string]context
escape.go#L90: map[string]context{},
escape.go#L100: func (e *escaper) escape(c context, n parse.Node) context {
escape.go#L121: func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
escape.go#L144: return context{
escape.go#L160: return context{
escape.go#L285: func nudge(c context) context {
escape.go#L303: func join(a, b context, node parse.Node, nodeName string) context {
escape.go#L352: return context{
escape.go#L379: func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
escape.go#L401: func (e *escaper) escapeList(c context, n *parse.ListNode) context {
escape.go#L415: func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (context, bool) {
escape.go#L448: func (e *escaper) escapeTemplate(c context, n *parse.TemplateNode) context {
escape.go#L458: func mangle(c context, templateName string) string {
escape.go#L478: func (e *escaper) escapeTree(c context, node parse.Node, name string, line int) (context, string) {
escape.go#L492: return context{
escape.go#L497: return context{
escape.go#L519: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L530: return context{
escape.go#L541: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L542: filter := func(e1 *escaper, c1 context) bool {
escape.go#L580: func (e *escaper) escapeText(c context, n *parse.TextNode) context {
escape.go#L585: return context{
escape.go#L592: return context{
escape.go#L622: return context{
escape.go#L656: func contextAfterText(c context, s []byte) (context, int) {
escape.go#L683: return context{
escape.go#L704: ret := context{
sanitize.go#L15: func sanitizerForContext(c context) ([]string, error) {
sanitize.go#L51: func sanitizersForAttributeValue(c context) ([]string, error) {
sanitize.go#L202: func sanitizerForElementContent(c context) (string, error) {
transition.go#L16: var transitionFunc = [...]func(context, []byte) (context, int){
transition.go#L32: func tText(c context, s []byte) (context, int) {
transition.go#L39: return context{state: stateHTMLCmt}, i + 4
transition.go#L52: ret := context{state: stateTag}
transition.go#L93: func tTag(c context, s []byte) (context, int) {
transition.go#L100: ret := context{
transition.go#L120: return context{state: stateError, err: err}, len(s)
transition.go#L124: return context{
transition.go#L135: return context{
transition.go#L144: func tAttrName(c context, s []byte) (context, int) {
transition.go#L147: return context{state: stateError, err: err}, len(s)
transition.go#L155: func tAfterName(c context, s []byte) (context, int) {
transition.go#L171: func tBeforeValue(c context, s []byte) (context, int) {
transition.go#L190: func tHTMLCmt(c context, s []byte) (context, int) {
transition.go#L192: return context{}, i + 3
transition.go#L204: func tSpecialTagEnd(c context, s []byte) (context, int) {
transition.go#L207: return context{}, i
transition.go#L239: func tAttr(c context, s []byte) (context, int) {
transition.go#L244: func tError(c context, s []byte) (context, int) {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |