Add basic support for a json output.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 24 Sep 2011 07:33:54 +0000 (09:33 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 24 Sep 2011 07:33:54 +0000 (09:33 +0200)
commit8f4ed5202870161e24cb9e6c91039158d3e902bf
treee9704c4d632cff632f26f05a57a7c1a4a33dbe55
parentade32c5593c555591eb5cf859ea64b8ef7fdaaf8
Add basic support for a json output.

If banana get output=json in its parameters, it will produce a json
output that can be used in order to update the page in javascript.

This works well with the box list, I didn't even test it on other pages.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
banana/banana.inc.php.in
banana/page.inc.php
banana/templates/banana-boxlist.inc.tpl
examples/index.php