NAME

MojoMojo::Controller::Jsrpc - Various JsRPC functions.

SYNOPSIS

This is the Mojo powering our AJAX features.

DESCRIPTION

This controller dispatches various data to ajax methods in mojomojo These methods will be called indirectly through javascript functions.

ACTIONS

render (/.jsrpc/render)

Edit uses this to get live preview. It gets some content in params->{content} and runs it through the formatter chain.

child_menu (/.jsrpc/child_menu?page_id=$page_id)

Returns a list of children for the page given by the page_id parameter, formatted for inclusion in a vertical tree navigation menu.

diff (/.jsrpc/diff)

Loads diff on demand. takes an absolute revision number as arg, and diffs it against the previous version.

submittag (/.jsrpc/submittag)

Add a tag through form submit

tag (/.jsrpc/tag)

add a tag to a page. return list of yours and popular tags.

untag (/.jsrpc/untag)

remove a tag to a page. return list of yours and popular tags.

imginfo (.jsrpc/imginfo)

Inline info on hoved for gallery photos.

AUTHOR

Marcus Ramberg <mramberg@cpan.org>, David Naughton <naughton@cpan.org>

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.