Revision 5 - 2009-02-09 at 04:29:13

We like "textile":http://www.textism.com/tools/textile for text formatting, but if you prefer something else, MojoMojo's pluggable formatter chain let's you rip out the textile formatter, and replace it with Markdown, or whatever else strikes your fancy. Since the wiki-links are handled by a separate formatter, it won't be affected at all. You can also add additional formatters to the core one, such as our RSS formatter or the Amazon formatter.

To set Markdown as the default formatter, run this one-liner in the MojoMojo directory:

bc. perl -Ilib -MMojoMojo -e'MojoMojo->pref("main_formatter", "MojoMojo::Formatter::Markdown")'

h3. Formatters

h4. Textile2

Default main text formatter. Textile is a human text formatter. It's popular among bloggers, and has a easy to learn format. You can read more about it at "the creator's website":http://textile.thresholdstate.com/.

h4. Wiki

This formatter handles the wiki-linking between pages in MojoMojo. It supports [[Explicit Link]] style. CamelCase is not supported by default (we learned from TWiki's mistakes).

h4. Scrub

This formatter ensures that the generated HTML is squeaky clean. That means it makes sure the generated output doesn't contain any potentially harmful elements.

h4. Comment

Allows user comment on page. syntax \n=comment\n

h4. Pod

Formats Plain Old Documentation. processes blocks between \n=pod\n

h4. Include

verbatim http include. Loaded at runtime. syntax \n=url\n

h4. IRCLog

see killtrac for example.

My tags:
 
Popular tags:
 
Powered by Catalyst