@markuplint/mustache-parser
TypeScript icon, indicating that this package has built-in type declarations

4.5.1 • Public • Published

@markuplint/mustache-parser

npm version

Use markuplint with Mustache or Handlebars.

Install

$ npm install -D @markuplint/mustache-parser

$ yarn add -D @markuplint/mustache-parser

Usage

Add parser option to your configuration.

{
  "parser": {
    ".mustache$|.hbs$": "@markuplint/mustache-parser"
  }
}

⚠️ 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>

Readme

Keywords

none

Package Sidebar

Install

npm i @markuplint/mustache-parser

Weekly Downloads

105

Version

4.5.1

License

MIT

Unpacked Size

3.79 kB

Total Files

7

Last publish

Collaborators

  • yusukehirao