Fixed an oversight in the watcher where the process would exit if you were editing a file and it had a syntax error or was not able to build. The watcher will now just continue running the old version until it can build the new version.
Unclaimed project
Are you a maintainer of htmgo? Claim this project to take control of your public changelog and roadmap.
Fixed an oversight in the watcher where the process would exit if you were editing a file and it had a syntax error or was not able to build. The watcher will now just continue running the old version until it can build the new version.
Some quick fixes in this release.
Fixes: https://github.com/maddalax/htmgo/issues/95. Builds from htmgo run and htmgo watch will now output to ./__htmgo/temp-build and are cleaned up each time the server starts/restarts. Builds from htmgo build will continue to go to the ./dist folder.
Tailwind 4 was released, pushed an update to ensure when we download the tailwind cli, it sta...
Adds ability to configure port via AppOpts or setting PORT=N environment variable.
Example:
h.Start(h.AppOpts{
ServiceLocator: locator,
Port: 3005,
LiveReload: true,
})
or
PORT=3005 htmgo watch
If you set both AppOpts.Port and PORT env variable, AppOpts.Port will take priority.
to update:
go get github.com/maddalax/htmgo/framewor...
Small release this time, added 2 new JS commands
Usage:
h.Div(
h.OnLoad(
h.RunOnInterval(time.Second,
js.ConsoleLog("this runs a command every 1s"),
js.SetInnerHtml(h.Div()),
js.EvalJs(`alert('you can eval complex js too...
Release 1.0.4
Partial Updates Partials can now be placed anywhere in the project instead of just the partials folder. This is useful for colocating partials and pages together for a simpler setup. The partials folder is no longer necessary.
As long as your function returns *h.Partial, it will get registered as a partial and can be used, anywhere in the project.
To get these par...