dust.js object print

dust.js

Solution

Try using the contextDump helper.

{#object}
  {@contextDump/}
{/object}

Here's an example: http://jsfiddle.net/smfoote/8UfJL/

Problem

Is it possible to print an object without knowing it's attributes? I am trying to debug why attributes of a certain object are not accessible in a view. ``` {#object} {attr} {/object} ``` In case of above example nothing gets printed instead of attr value.

Original source