TypeScript successor to mini-handlebars

Features

~4kB minified (compared to ~70kB minified handlebars)

~18kB install size (compared to ~5.8MB with handlebars)

tiny API

template pre-parsing

"parse then render" in one call

no batteries included (blocks are just local functions)

syntax/context plugin system (coming later)

100% test coverage

Usage

import { hb } from ' mini-hb ' result = render ( context ) render = hb . bind ( context ) result = render ( template ) render = hb . bind ( context , , ) result = render ( template ) context = hb ( context , , cond ? : null )

See the tests for more details.