Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tree-sitter/tree-sitter-embedded-template

Tree-sitter grammar for embedded template languages like ERB, EJS
https://github.com/tree-sitter/tree-sitter-embedded-template

parser template-language tree-sitter

Last synced: 1 day ago
JSON representation

Tree-sitter grammar for embedded template languages like ERB, EJS

Awesome Lists containing this project

README

        

# tree-sitter-embedded-template

[![CI][ci]](https://github.com/tree-sitter/tree-sitter-embedded-template/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![crates][crates]](https://crates.io/crates/tree-sitter-embedded-template)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-embedded-template)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-embedded-template)

A [tree-sitter](https://github.com/tree-sitter/tree-sitter) parser for templating languages like [ERB](https://ruby-doc.org/stdlib-2.5.1/libdoc/erb/rdoc/ERB.html) and [EJS](http://ejs.co), in which scripting code can be embedded within text content using the delimiters `<%` and `%>`.

References

- [ERB Documentation](https://ruby-doc.org/stdlib-2.5.1/libdoc/erb/rdoc/ERB.html)
- [EJS Documentation](http://ejs.co/#docs)

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-embedded-template/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-embedded-template?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-embedded-template?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-embedded-template?logo=pypi&logoColor=ffd242