Replies: 1 comment
-
|
there is an ongoing issue here #374 but for the time being as I also found that to be a bit annoying i set VSCode to never format on save for templ files in my workspace "[templ]": {
"editor.formatOnSave": false
},this does mean its extra working having to format the files by hand but until this is implemented thats just how its gonna have to be i guess |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! Today, I started playing around with templ but ran into an issue with composed templates. At first, I tried to add the nested template inline, like this:
This did not work as the element did not get recognized. So, I figured you must put it on a separate line to work, like so:
Now, the template was working correctly, but templ fmt cuts off the space right after visit, resulting in
<p>For more information visit<a href=example.com>this site</a>instead of<p>For more information visit <a href=example.com>this site</a>. I searched the docs and this repo but could not find an easy solution. Any help is appreciated :)Beta Was this translation helpful? Give feedback.
All reactions