-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Let's say I want to have rust code directly inside <script></script>
, like Svelte and Vue do for JS. Would this be possible with the current configuration options?
I think this would be implementable if I just went through the TokenStream
and added {
after every <script>
and }
before every </script>
. Time complexity would go down the gutter though (maybe I could implement this with a map? which is lazy, but still). Maybe a config option to accept blocks directly inside certain tags would be useful. Or a more general Visitor-like API that would allow the insertions of the {
/}
where needed.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request