Skip to content

Commit

Permalink
more debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Dec 23, 2024
1 parent 85fd587 commit 7ac2a7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/core/web/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func makeFiles(c *config.Config) error {

preRenderHTML := ""
if c.Web.GenerateHTML {
preRenderHTML, err = exec.Output("go", "run", "-tags", "offscreen,generatehtml", ".")
preRenderHTML, err = exec.Verbose().SetBuffer(false).Output("go", "run", "-tags", "offscreen,generatehtml", ".")
if err != nil {
return err
}
Expand Down
2 changes: 2 additions & 0 deletions core/generatehtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import (
func init() {
wb := NewWidgetBase()
ExternalParent = wb
fmt.Println("core init")
wb.SetOnChildAdded(func(n tree.Node) {
fmt.Println("core oca")
fmt.Println(GenerateHTML(n.(Widget)))
os.Exit(0)
})
Expand Down
2 changes: 1 addition & 1 deletion pages/generatehtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
func init() {
// We override the OnChildAdded set in core/generatehtml.go
core.ExternalParent.AsWidget().SetOnChildAdded(func(n tree.Node) {
fmt.Println("oka")
fmt.Println("pages oca")
var pg *Page
n.AsTree().WalkDown(func(n tree.Node) bool {
if pg != nil {
Expand Down

0 comments on commit 7ac2a7b

Please sign in to comment.