This page describe supporting URLs on the website.
Normally all urls support output as:
HTML
formatAJAX
format, IE HTML
format w/o standard html
headers. This is usefull to include part of website using
Javascript
code.JSON
formatXMLRPC
functions, see XMLRPC
Help page.
The default output is of course HTML
format, like any website
would do.
Alternative output is obtained by passing argument either as POST
or GET
:
json
for json output,ajax
for ajax output.Examples:
[% c.uri_for('/distrib') %] [% c.uri_for('/distrib', { ajax => 1 }) %] [% c.uri_for('/distrib', { json => 1 }) %]
NB: Some URL don't support (yet) all output type.