maskjs

JavaScript Template/Markup Engine

npm install maskjs
6 downloads in the last week
12 downloads in the last month


mask.js — is a template/markup engine.


.container {
    h4 > 'Title'
    section.content data-id='myID' {
        span >'Hello #{name}!'
    }
}
Features:
  • Performance — (mobile CPUs in mind) — jsperf
  • Custom tags / Custom Value Processors
  • DOM Based — [Template → JSON AST → Document Fragment → Live DOM]. This allows custom tags to render themselfs much faster in compare to rendering into placeholder in dom
  • For server and browsers

maskFiddle

Documentation

You may also want to checkout some more additional features, like Binding Components

npm loves you