JavaScript Template/Markup Engine

npm install maskjs
12 downloads in the last month

mask.js — is a template/markup engine.

.container {
    h4 > 'Title'
    section.content data-id='myID' {
        span >'Hello #{name}!'
  • 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



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

npm loves you