Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ERB templates and others #773

Open
dan42 opened this issue Oct 17, 2024 · 0 comments
Open

Add support for ERB templates and others #773

dan42 opened this issue Oct 17, 2024 · 0 comments

Comments

@dan42
Copy link

dan42 commented Oct 17, 2024

There's an existing parser for <% %> based templates:
https://github.com/tree-sitter/tree-sitter-embedded-template

My main use case is for ERB, but I think it would be very nice to integrate the above in a way that allows any mix of difftastic's supported programming languages with structured text formats.

.html.erb => Ruby embedded in HTML
.xml.erb => Ruby embedded in XML
.json.epy => Python embedded in JSON
.toml.epl => Perl embedded in TOML

Anything goes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant