#tree-sitter #template-engine #incremental #parser #embedded-template

tree-sitter-embedded-template

Embedded Template (ERB, EJS) grammar for tree-sitter

6 releases (3 breaking)

0.23.2 Nov 11, 2024
0.23.1 Nov 10, 2024
0.23.0 Sep 2, 2024
0.21.0 May 6, 2024
0.19.0 Mar 4, 2021

#218 in Parser tooling

Download history 979/week @ 2024-08-02 691/week @ 2024-08-09 691/week @ 2024-08-16 797/week @ 2024-08-23 831/week @ 2024-08-30 709/week @ 2024-09-06 1055/week @ 2024-09-13 936/week @ 2024-09-20 908/week @ 2024-09-27 874/week @ 2024-10-04 813/week @ 2024-10-11 777/week @ 2024-10-18 737/week @ 2024-10-25 818/week @ 2024-11-01 2133/week @ 2024-11-08 2279/week @ 2024-11-15

6,132 downloads per month
Used in syntastica-parsers

MIT license

40KB
1K SLoC

C 1K SLoC JavaScript 35 SLoC // 0.2% comments Rust 27 SLoC Scheme 23 SLoC

tree-sitter-embedded-template

CI discord matrix crates npm pypi

A tree-sitter parser for templating languages like ERB and EJS, in which scripting code can be embedded within text content using the delimiters <% and %>.

References

Dependencies

~2–285KB