Results 108 comments of Jackie Li

I stumbled across this with lots of search. I was using air to reload, but I miss the browser auto refresh feature. Initially I used [browser-sync](https://github.com/Browsersync/browser-sync)'s proxy mode. However, I...

Aha, actually found a pretty good enough solution: ``` templ generate --watch --proxy="http://localhost:8080" --cmd="wgo run ." ``` So `wgo` watches go files, and templ watches `.templ` files. All covered!

Can I make one small suggestion: Add `templ generate --watch --notify` to notify default listening port, i.e. 7331 a reload event This makes other watcher to send the browser refresh...

@a-h are you willing to accept a PR that adds `templ generate --watch --notify` to notify an update progmatically? Thanks

> Thanks for writing that up into a nicely written up proposal @jackielii. > > This issue can remain focused on whether templ should also support hot reload for `*.go`...

OK, I realised my PR #1193 is getting stale, I probably need a rewrite of it (probably the 2nd one). I'll extract just this part into a separate PR

I implemented this in a standalone PR https://github.com/a-h/templ/pull/1251 . I have a question: should we allow HTML style comment `` in the attributes?

there should be Ctrl+_ for undo though

There is only "Introduction of new routes" left which I'm not sure what to do. Otherwise the PR is ready.