0.0.2 • Published 9 years ago

dustjs-helper-stringify v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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