dustjs-helper-stringify
v0.0.2
Published
JSON Stringify helper for Dust.js
Downloads
3
Maintainers
Readme
JSON Stringify helper for Dust.js
Give dust.js ability to pretty print JSON with space.
Turn
{"any":"json","that":"hard","to":"read"}
into something like
{
"any": "json",
"that": "hard",
"to": "read"
}
For Node.js
var dust = require('dustjs-linkedin');
require('dustjs-helpers');
require('dustjs-helper-stringify');
Use in Dust template
<pre>
{@stringify value="{myDate|js|s}" space="2"/}
</pre>
License
MIT license