Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tad-lispy/docpad-plugin-json
- Owner: tad-lispy
- Created: 2013-01-10T18:49:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-10T19:10:18.000Z (almost 12 years ago)
- Last Synced: 2024-08-01T12:20:44.865Z (3 months ago)
- Language: CoffeeScript
- Size: 107 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-starred - tad-lispy/docpad-plugin-json - Supersimple plugin for DocPad to send JSON responses (others)
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"