handlebars-echo

Handlebars utility helper to output a navigable, visual representation of data

Usage no npm install needed!

<script type="module">
  import handlebarsEcho from 'https://cdn.skypack.dev/handlebars-echo';
</script>

README

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