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

tree-sitter-embedded-template

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

7 releases (4 breaking)

0.25.0 Aug 29, 2025
0.23.2 Nov 11, 2024
0.23.0 Sep 2, 2024
0.21.0 May 6, 2024
0.19.0 Mar 4, 2021

#2796 in Parser implementations

Download history 3813/week @ 2025-11-07 3373/week @ 2025-11-14 3617/week @ 2025-11-21 3634/week @ 2025-11-28 3471/week @ 2025-12-05 3956/week @ 2025-12-12 2379/week @ 2025-12-19 2059/week @ 2025-12-26 3244/week @ 2026-01-02 3981/week @ 2026-01-09 3435/week @ 2026-01-16 4135/week @ 2026-01-23 4351/week @ 2026-01-30 5082/week @ 2026-02-06 5211/week @ 2026-02-13 5899/week @ 2026-02-20

21,089 downloads per month
Used in 6 crates (5 directly)

MIT license

42KB
1K SLoC

C 1K SLoC JavaScript 35 SLoC // 0.2% comments Rust 32 SLoC Scheme 29 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

~250KB