1.7.0 • Published 2 years ago
twig-ast v1.7.0
Twig-AST
Parses Twig templates into an AST.
Usage
const TwigAST = require('twig-ast');
const ASTUtils = require('twig-ast/dist/print');
const ast = TwigAST.toAST('Hello {{planet}}');
ASTUtils.print(ast);
Returns
Tree Derived from
----- -------------
TEXT "Hello {{planet}}"
├ LITERAL "Hello "
├ TAG_OUTPUT "{{planet}}"
│ └ EXPRESSION "planet"
│ └ VARIABLE (planet) "planet"
└ LITERAL ""
Contribute
We really appreciate any contribution you would like to make, so don't hesitate to report issues or submit pull requests.
License
This project is released under a MIT license.
About us
If you would like to know more about us, be sure to have a look at our website, or our Twitter accounts Ambassify, Sitebase, JorgenEvens
1.7.0
2 years ago
1.6.6
6 years ago
1.6.5
6 years ago
1.6.4
6 years ago
1.6.3
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.0
6 years ago
1.3.1
6 years ago
1.3.0
7 years ago
1.2.0
7 years ago
1.1.2
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago