]> git.earlybird.gay Git - today/commitdiff
remove a bunch of prints :/
authorearly <me@earlybird.gay>
Sat, 21 Dec 2024 00:55:55 +0000 (17:55 -0700)
committerearly <me@earlybird.gay>
Sat, 21 Dec 2024 00:55:55 +0000 (17:55 -0700)
web/internal/compile/template.go

index 6b6f4c2d24d12313ac3e75227d425cd946e0e67d..bf90afbc69d413e9aa1bae19db4de0f970b52c50 100644 (file)
@@ -290,7 +290,6 @@ func replaceTemplateFields(n *html.Node) {
                        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 {
@@ -334,9 +333,7 @@ func insertTemplateSource(lang language.Tag, subSource TemplateSource, context *
        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