handlebars-echo

1.1.0 • Public • Published

handlebars-echo

Echo is a debugging tool. A Handlebars helper to output a navigable, visual representation of data.

Example echo output

Installation

npm i --save handlebars-echo

Register echo as a helper

const echo = require('handlebars-echo');

Handlebars.registerHelper('echo', echo);

Usage

<!-- View the root context -->
{{{ echo @root }}}

<!-- View the currently scoped context -->
{{{ echo this }}}

<!-- View anything! -->
{{{ echo path.to.my.nested.value }}}

License

MIT

Package Sidebar

Install

npm i handlebars-echo

Weekly Downloads

355

Version

1.1.0

License

MIT

Unpacked Size

63.3 kB

Total Files

7

Last publish

Collaborators

  • trefz