I have some syntax errors in my Jade templates. Are there any tools that can help me debug?
Found it. Use jade [fileName].jade
to debug your Jade template.
You can install the Jade tool with npm install jade --global
.
Adding this here because I still had to google.
npm i -g pug-lint
NOTE: jade has changed its name to pug
web storm is a better tool for jade development ,it idents and corrects jade files
来源:https://stackoverflow.com/questions/14173144/is-there-a-jade-template-syntax-checker-validator