Attributes
base_url
Base of the application used for creating internal links.
Methods
create_page
Create a new page and return the url to redirect to, namely the page in edit mode. We might change this to view mode if demand persuades.
preview_page
AJAX preview of a page (parse and render, save when button pressed)
update_page
Update a page given: content, id and base_url
edit_page_form
Present the form with a page ready to be edited.
view_page
Given a page id, we retrieve its page from the db and return the HTML form of the page to the browser.
view_page_public
Given a page id, we retrieve its page from the db and return the HTML form of the page to the browser. This method is much like the view_page() method is setup for public pages (ones that do not require authentication).
view_home_page
Create the view for the base of the application.
delete_page
Delet a page given a page id. Return the URL to recent (maybe home someday?)
bench
A path for benchmarking to get an basic idea of peformance.
Name
Mojito - A Lightweight Web Document System
Description
Mojito is a web document system that allows one to author web pages. It has been inspired by MojoMojo which is a mature, stable, responsive and feature rich wiki system. Check MojoMojo out if you're looking for an enterprise grade wiki. Mojito is not attempting to be a wiki, but rather its initial goal is to allow an individuals to author HTML5 compliant documents that could be for personal or public consumption.
Goals
Mojito is in alpha stage so it has much growing to do. Some goals and guidelines are:
* Somewhat Framework Agnostic. Currently there is support for
Web::Simple, Dancer and Mojo with Tatsumaki support planned)
* Minimalistic Interface. No Phluff or at least options to turn features off.
* A page engine that can standalone or potentially be plugged into MojoMojo.
* Exchange between MojoMojo and Mojito document formats.
* HTML5
Current Limitations
* No Auth support
* No Search
* Hardwired to a 'documents' named mongo db and a 'notes' collection
* No revision history (only 1 version any any page)
* Prematurely optimized ;)
Authors
Mateu Hunter hunter@missoula.org
Copyright
Copyright 2011, Mateu Hunter
License
You may distribute this code under the same terms as Perl itself.