Replies: 3 comments 8 replies
-
The docs are still there: https://templ.guide/syntax-and-usage/script-templates/#script-templates We are working on a better alternative, but currently we are not planning to remove it until we have a better alternative with a smooth migration path. |
Beta Was this translation helpful? Give feedback.
-
Great! Thanks for the quick response @joerdav . Did we decide on the approach yet? Just want to be aware as we heavily use this feature. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone... I am a bit lost trying to understand how this should work in the future. I really like the simplicity of script templates. but I also need a type=module template to include several instances of wavesurfer.js Now my issue is that I am not sure how to pass data to script tags in a generic way. I can use the two reccomended methods in the docs, but I STILL need to somehow inject the actual id that is used, as it will be dependend on the data loaded and there might be multiple instances on one page... Can anyone explain me how this should work ? |
Beta Was this translation helpful? Give feedback.
-
Hi,
Do we plan to remove the ability to write script components in templ? I do not see the docs anymore at: https://templ.guide/syntax-and-usage/script-templates
Beta Was this translation helpful? Give feedback.
All reactions