Skip to content

Render templates with Broccoli (haml, jade, markdown etc...) using consolidate

License

Notifications You must be signed in to change notification settings

rlivsey/broccoli-render-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

broccoli-render-template

Render templates using consolidate.

NOTE: you must still install the engines you wish to use, add them to your package.json dependencies.

It uses the filename extension of the template to decide what engine to use.

Usage

var renderTemplates = require("broccoli-render-template");
var templates = renderTemplates(source);

To pass variables to your templates, provide them after the tree:

var templates = renderTemplates(source, {
  foo: 1,
  bar: 2
});

About

Render templates with Broccoli (haml, jade, markdown etc...) using consolidate

Resources

License

Stars

Watchers

Forks

Packages