Templ tries to stay simple, but it sacrificies ergonomics for simplicity and verbosity.
Over the years, there are many proposals: inline elements, HTML tags, error hoisting. It's hard to retrofit into it.
Beside the above, I also tried solving the all the ergonomics problem I saw when using templ. E.g. auto class merging, easy javascript interpolation within attributes. Auto json interpolation etc
5 comments
[ 2.7 ms ] story [ 23.3 ms ] threadOver the years, there are many proposals: inline elements, HTML tags, error hoisting. It's hard to retrofit into it.
Beside the above, I also tried solving the all the ergonomics problem I saw when using templ. E.g. auto class merging, easy javascript interpolation within attributes. Auto json interpolation etc