#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

#216 in Parser tooling

Download history 1098/week @ 2024-07-30 755/week @ 2024-08-06 662/week @ 2024-08-13 748/week @ 2024-08-20 915/week @ 2024-08-27 734/week @ 2024-09-03 689/week @ 2024-09-10 1164/week @ 2024-09-17 931/week @ 2024-09-24 871/week @ 2024-10-01 841/week @ 2024-10-08 758/week @ 2024-10-15 823/week @ 2024-10-22 823/week @ 2024-10-29 1023/week @ 2024-11-05 2341/week @ 2024-11-12

5,120 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