@tcmlabs/handlebars-dependencies
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.1 • Public • Published

handlebars-dependencies

Analyse Handlebars templates which cross-reference data.

The purpose of this package is to detect Handlebars templates which may try to interpolate someValue, using {{ someValue }}, that may be missing in a global Object.

Some of the currently supported features:

  • Introspect Handlebars templates, and return a complete dependency graph of interpolated data
  • View missing dependency references, ie foo.ext template references {{ bar }}, but bar data does not exist
  • View unreferenced/orphans data, ex. foo data never referenced as {{ foo }} in any template.

Readme

Keywords

none

Package Sidebar

Install

npm i @tcmlabs/handlebars-dependencies

Weekly Downloads

2

Version

0.0.1-alpha.1

License

MIT

Unpacked Size

26.7 kB

Total Files

14

Last publish

Collaborators

  • jbmusso