Replies: 1 comment
-
|
Maybe you can use TwingParser for this purpose? It actually does what you need: parse the template to an AST tree. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would very much like to use
twingto also run linting tasks on twig templates from within a webpack build. The project I want to package will contain the twig templates for downstream usage, but I want to prevent shipping faulty templates.Being able to just parse the templates and report errors would be very helpful for the library to be used as a dependency in just linting tasks (read: webpack/gulp/... plugins).
Beta Was this translation helpful? Give feedback.
All reactions