Cupboard

Cupboard is a wrapper around Plates. It loads templates from disk and wraps them in an object with a map and bind function.

npm install plates-cupboard

Usage

To use Cupboard, tell it where to find your template folder.

var cupboard = require('cupboard');

var templates = cupboard('./templates');

Cupboard will recurse through the folder creating an object tree which matches the directory layout. All html files will be loaded from disk, and plates map and bind function become available on the returned objects.