EmranMR / tree-sitter-blade

tree-sitter grammar for Laravel blade files
MIT License
199 stars 8 forks source link

AlpineJS javascript injection support #28

Closed EmranMR closed 9 months ago

EmranMR commented 1 year ago

If you have access to tree-sitter-html and able to modify the injection.scm, you could follow https://github.com/EmranMR/tree-sitter-blade/discussions/19#discussioncomment-6451292 to inject JS into alpineJS.

However it would be nice to add first party support in tree-sitter-blade for Injecting JS into AlpineJS attribute directives. This will enable the injections where the injection.scm is not accessible, for example in Nova.

EmranMR commented 9 months ago

Not needed for now follow the guide in #33