"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tpl/internal/go_templates/htmltemplate/escape.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

escape.go  (hugo-0.80.0):escape.go  (hugo-0.81.0)
skipping to change at line 128 skipping to change at line 128
// contains no special characters, is not empty, and when it appears in output // contains no special characters, is not empty, and when it appears in output
// it is distinct enough that a developer can find the source of the problem // it is distinct enough that a developer can find the source of the problem
// via a search engine. // via a search engine.
const filterFailsafe = "ZgotmplZ" const filterFailsafe = "ZgotmplZ"
// escape escapes a template node. // escape escapes a template node.
func (e *escaper) escape(c context, n parse.Node) context { func (e *escaper) escape(c context, n parse.Node) context {
switch n := n.(type) { switch n := n.(type) {
case *parse.ActionNode: case *parse.ActionNode:
return e.escapeAction(c, n) return e.escapeAction(c, n)
case *parse.CommentNode:
return c
case *parse.IfNode: case *parse.IfNode:
return e.escapeBranch(c, &n.BranchNode, "if") return e.escapeBranch(c, &n.BranchNode, "if")
case *parse.ListNode: case *parse.ListNode:
return e.escapeList(c, n) return e.escapeList(c, n)
case *parse.RangeNode: case *parse.RangeNode:
return e.escapeBranch(c, &n.BranchNode, "range") return e.escapeBranch(c, &n.BranchNode, "range")
case *parse.TemplateNode: case *parse.TemplateNode:
return e.escapeTemplate(c, n) return e.escapeTemplate(c, n)
case *parse.TextNode: case *parse.TextNode:
return e.escapeText(c, n) return e.escapeText(c, n)
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)