Adrian Hesketh
Adrian Hesketh
Thanks for the input on this folks. I was thinking that people wouldn't do expensive operations like database lookups etc. directly in their templates, and that templates would be pure...
Just leaving this thought here around having an equivalent of React's context object (https://react.dev/learn/passing-data-deeply-with-context) - as per this conversation: https://www.reddit.com/r/golang/comments/1755wh9/comment/k4y5d2i/?utm_source=share&utm_medium=web2x&context=3 If we implement "arbitrary code" in Go templates then we...
See https://github.com/a-h/templ/pull/713 I think the docs would need an update. In particular, I'm concerned about people trying to do things like `for` loops inside this syntax, and getting very confused...
Am interested in how the LSP behaves, and I guess this would have ripple effects through the editor plugins.
Side chat - the number of syntax highlighting formats to support is currently at 4 - Treesitter (Neovim), Pygments (Github), TextMate (VS Code), and the JetBrains one (can't remember what...
Ah yes, thanks! I think it could be possible to swap out the docs to use https://shiki.matsu.io which also uses TextMate. There's a Docusaurus plugin, but I took a look...
Hi, is the templ binary in your system path? The VS Code extension requires the binary to be present. You can check this by opening a terminal and running 'templ'....
Interesting. I'm on MacOS (M1), and haven't been able to reproduce it. Not sure what your timezones are, but I can be available for a Google Meet to try and...
Thanks @kingjulienboss - @alexpower2002 / @WanderningMaster - is that the same issue for you? The troubleshooting steps are: # Check that go, gopls and templ are installed and are present...
Hi folks, just to help with the mental model of how the VS Code LSP works... The main task that the extension does is to run the `templ lsp` command....