Contributing
MicroTemplateService
This plugin's parser provides MicroTemplateService from parserServices
. MicroTemplateServic
can be get with sourceCode.parserServices.getMicroTemplateService()
.
Traverse MicroTemplates
- To traverse MicroTemplates we use the
traverseMicroTemplates
method. - ast-for-template-tag.md is
<%= templateTag %>
AST specification. - template-tag-spacing.js is an example.
Traverse HTML
- To traverse HTML we use the
traverseDocumentNodes
method. - ast-for-html.md is HTML AST specification.
- no-html-comments.js is an example.