#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

#175 in Parser tooling

Download history 789/week @ 2024-08-21 873/week @ 2024-08-28 749/week @ 2024-09-04 918/week @ 2024-09-11 975/week @ 2024-09-18 890/week @ 2024-09-25 871/week @ 2024-10-02 845/week @ 2024-10-09 763/week @ 2024-10-16 788/week @ 2024-10-23 836/week @ 2024-10-30 1485/week @ 2024-11-06 2313/week @ 2024-11-13 2132/week @ 2024-11-20 1919/week @ 2024-11-27 1855/week @ 2024-12-04

8,797 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–305KB