Tags: open2b/scriggo
Tags
scriggo: require Go 1.23 as the minimum supported version With the release of Go 1.24, this change sets Go 1.23 as the new minimum supported version. Additionally, the `scriggo` command is now compiled using Go 1.24. Co-authored-by: Gianluca Mondini <mondini@open2b.com>
internal/compiler: fix emitting of receiver in method calls This commit fixes the emitting of method calls, where the receiver of the method call was erroneously placed as first "general" argument in the call stack, causing an incorrect stack shift and altering the parameters received from the called method. Also adds tests on this. Fix #967. Co-authored-by: Marco Gazerro <gazerro@open2b.com>
cmd/scriggo: add LiveReload for automatic page reloads This change adds LiveReload functionality, enabling automatic page reloads in the browser whenever the template code changes. The 'scriggo serve' command now injects JavaScript into the generated page. Using Server-Side Events (SSE), it triggers a page reload whenever the page’s template files change. LiveReload can be disabled with the --disable-livereload flag.
all: use the syntax `//go:build` instead of `// +build` This commit removes the line syntax: // +build by using just the syntax: //go:build which is supported starting from Go 1.17 and has been considered deprecated starting from Go 1.18. Note that, in tests, the old syntax is kept. See #956.
PreviousNext