Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
/ ludtwig-parser Public archive

Parser for twig / html / vue templating syntax.

License

Notifications You must be signed in to change notification settings

MalteJanz/ludtwig-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ludtwig-Parser

GitHub Crates.io Crates.io

Moved into Ludtwig Repository

This repository contains outdated source code. This parser crate got a complete rewrite and is now located in the ludtwig Repository

Rust crate that parses twig / html / vue.js templating syntax into an AST (abstract syntax tree). It does not conform to any spec and the input is required to be as idiomatic as possible. For example missing closing tags in html result in a parsing error (even if browsers can interpret the html and reconstruct the closing tag). This makes it possible to represent the template in a hierarchical AST.

Documentation for this crate exists but read the disclaimer before you start using this crate.

Disclaimer

This crate is still in early development and the API can break with any release until it reaches a stable v1.0.0 version (semantic versioning). It is developed together with the ludtwig CLI application for formatting and analyzing templating files.

License

MIT - see LICENSE file.

License notices

For testing purposes this repository also includes code from the following sources:

About

Parser for twig / html / vue templating syntax.

Resources

License

Stars

Watchers

Forks

Packages

No packages published