0.1.0 • Published 8 years ago

html-partials v0.1.0

Weekly downloads
2
License
CC0-1.0
Repository
github
Last release
8 years ago

html-partials

Trivial master-partial templating for HTML files.

Master page should contain hooks for partials, view folder should contain partials themselves with corresponding names, e.g. for a hook {{> shoppingcart}} there should be a partial shoppingcart.html

Content of a partial is inserted as is (no templating).

Usage

var htmlPartials = require('partials');
htmlPartials.insert('index.master', 'views');