grunt-hbs-require-partials

0.1.0 • Public • Published

grunt-hbs-require-partials

transforms compiled hbs templates to require necessary partials.

note: this code is extremely dependent upon the structure of compiled hbs javascript. This has been texted with hbs v2 but might not work with other versions.

uses standard grunt src-dest file mapping - http://gruntjs.com/configuring-tasks#files

options

exclude - excludes specific partials from being required. function is given partial name as arg. return true to exclude a given partial.

partialToModule - function used to map partial names to module names

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i grunt-hbs-require-partials

Weekly Downloads

3

Version

0.1.0

License

none

Last publish

Collaborators

  • mattkime