Home | History | Annotate | Download | only in template

Lines Matching refs:escaper

75 // escaper collects type inferences about templates and changes needed to make
77 type escaper struct {
95 // newEscaper creates a blank escaper for the given set.
96 func newEscaper(t *Template) *escaper {
97 return &escaper{
116 func (e *escaper) escape(c context, n parse.Node) context {
137 func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
415 func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
437 func (e *escaper) escapeList(c context, n *parse.ListNode) context {
451 func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (context, bool) {
484 func (e *escaper) escapeTemplate(c context, n *parse.TemplateNode) context {
494 func (e *escaper) escapeTree(c context, node parse.Node, name string, line int) (context, string) {
534 func (e *escaper
556 func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
557 filter := func(e1 *escaper, c1 context) bool {
559 // Do not update the input escaper, e.
595 func (e *escaper) escapeText(c context, n *parse.TextNode) context {
716 func (e *escaper) editActionNode(n *parse.ActionNode, cmds []string) {
724 func (e *escaper) editTemplateNode(n *parse.TemplateNode, callee string) {
732 func (e *escaper) editTextNode(n *parse.TextNode, text []byte) {
741 func (e *escaper) commit() {
762 func (e *escaper) template(name string) *template.Template {