Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 492 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 492 Bytes

@gorner/broccoli-templater

broccoli plugin that combines lodash's _.template and broccoli for fun stuff.

Fork of Stefan Penner's broccoli-templater but with unmaintained lodash.template replaced with regular lodash due to vulnerabilities.

example:

var templatedTree = new Template(untemplatedTree, pathToTemplate,
  function buildVariables(content, relativePath) {
    return {
      moduleBody: content
    };
});