hemplate-parser
Tree-sitter parser wrapper for Hemplate templates. Requires Rust 1.91 or newer.
[]
= "0.2.0"
When migrating from 0.1, pair this with tree-sitter-hemplate 0.2 and
hemplate-core 0.3 for typed AST tooling. Strict attribute-context checks run in
hemplate-derive 0.4, not in this parser: a successful parse does not establish
that interpolated values are safe.
use parse_template;
let tree = parse_template
.expect;
assert!;
Use TemplateParser when parsing repeatedly or incrementally. Typed AST construction lives in hemplate-core; derive-macro code generation lives in hemplate-derive. Applications should normally use the hemplate facade.
License
MIT