Skip to content

hb adapter

jarnoux edited this page Jul 2, 2013 · 4 revisions

Description

hb-adapter is an adapter middleware for the popular template engine Handlebars. It is the default engine to render html files in the views/ directory. You can modify the template engine used by Rig by calling the rig.engine method (see API here).

Configuration

Example

"hb-adapter": {
    "minifyHtml": true
}

Member

  • minifyHtml: if true, the middleware will strip all spaces, newlines and html comments between html tags to make a compact html blob (useful to save characters sent over the wire).
Clone this wiki locally