mojombo/jekyll — pull request #1651 by liufengyun (2013-10-22 10:11:13+00:00)
Title: support jsonify filter

Now jekyll supports automatically loading yaml files under `_data/` directory. To use the data in front-end to build rich client, there should be an easy way to convert the data into JavaScript.

The `jsonify` filter fulfills that purpose.

For example, following code exports `site.data.projects` for front-end usage.

``` javascript
window.projects = {{ site.data.projects | jsonify }}
```