@markuplint/erb-parser
v4.6.1
Published
eRuby template parser for markuplint
Downloads
7,400
Readme
@markuplint/erb-parser
Use markuplint with ERB.
Install
$ npm install -D @markuplint/erb-parser
$ yarn add -D @markuplint/erb-parser
Usage
Add parser
option to your configuration.
{
"parser": {
".erb$": "@markuplint/erb-parser"
}
}
:warning: Unsupported syntaxes
It's not able to support syntaxes if one's attribute is complex.
✅ Available codes
<div attr="<%= value %>"></div>
<div attr='<%= value %>'></div>
<div attr="<%= value %>-<%= value2 %>-<%= value3 %>"></div>
❌ Unavailable codes
If it doesn't nest by quotations.
<div attr=<%= value %>></div>