It would be nice to have an option like --macro-ident to support this. For example:
leptosfmt --macro-ident v .
And a comma-separated list could be used to support multiple names:
leptosfmt --macro-ident view,v .
I'm not sure how popular this use case is, so for now I just created my own fork that supports the v! macro. But I thought I'd also open this feature request in case others would also find this option useful.
I rebind the
view
name as the local namev
:so that I can use:
It would be nice to have an option like
--macro-ident
to support this. For example:And a comma-separated list could be used to support multiple names:
I'm not sure how popular this use case is, so for now I just created my own fork that supports the
v!
macro. But I thought I'd also open this feature request in case others would also find this option useful.