if inTemplate && isField(token) ||
inAttrs && isDataAttr[i] {
// special case; . is parentable but shouldn't be appended
- fmt.Println("replacing token", token)
if token == "." {
token = "$today_parent"
} else {
raiseStack := []string{}
htmltree.Walk(context.FirstChild, func(n *html.Node) (bool, error) {
if raiseDepth == 0 {
- fmt.Println("replace", n.Data)
replaceTemplateFields(n)
- fmt.Println("result", n.Data)
}
if n.Type == html.TextNode {
// Scope up/down only when setting dot