Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tad-lispy/docpad-plugin-json

Supersimple plugin for DocPad to send JSON responses
https://github.com/tad-lispy/docpad-plugin-json

Last synced: 5 days ago
JSON representation

Supersimple plugin for DocPad to send JSON responses

Awesome Lists containing this project

README

        

JSON Plugin for Docpad
======================

Supersimple plugin for [DocPad][1] to send document meta and content as JSON when requested.

How to use it?
--------------

Just place it in your plugins directory and make requests, eg

``` bash
curl -H "Accept: application/json" http://localhost:9778/
```

You should get:

``` javascript
{
meta: {} // your document's metadata
content: "" // your content, not rendered
}
```

[1]: https://docpad.org/ "DocPad - a next generation web framework"