Adrian Hesketh

Results 359 comments of Adrian Hesketh

This change would break everyone's existing code - i.e. if they upgrade the package, they'll get compilation errors. I'm sure there's a way to add the version without breaking existing...

I've put together an example of using `` elements to pass data to scripts instead of the script templates. Would like your feedback on it, see #739

The mission of templ is to: > Enable Go developers to build strongly typed, component-based HTML user interfaces with first-class developer tooling, and a short learning curve. So, rendering text...

Good idea. I propose a design like this: ```go func Children(ctx context.Context) (ok bool, c templ.Component) { _, v := getContext(ctx) if v.children == nil { return false, NopComponent }...

I'm not sure I completely follow. Are you suggesting a different API? We have an experimental package at https://github.com/templ-go/x - that might be a good place for a proof-of-concept design.

I can reproduce it with Chinese too. Hovering over the Chinese text in `var happyBirthday = "生日快乐"` causes a "rune error" too. Since the underlying error is a `*jsonrpc2.Error` and...

In Neovim, it's possible to enable additional logging with `:lua vim.lsp.set_log_level("DEBUG")`. With that in place, you can use `:LspLog` to see what's going on. My test file is: ```go package...

I think I've resolved this in #712 - care to test out the branch and check that it properly resolves it for you @koddr?

Thanks for putting together the issue. Can you please add some code examples of what the formatter is doing that show the before and after templ code of the current...

Riffing on your idea a bit, I think an implementation could also support preformatted text. # templ: whitespace support templ currently handles whitespace by assuming whitespace-collapse mode as per HTML....