METHODS

You may supply as many formatter objects as you wish. They don't have to be of different classes; you may just wish to, for example, permit different HTML tags to be used on different types of pages.

The "labels" supplied as the keys of the parameter hash should be unique. When you write a node, you should store a key-value pair in its metadata where the key is formatter and the value is the label of the formatter that should be used to render that node.

The _DEFAULT label is special - it defines the formatter that will be used for any node that does not have a formatter stored in its metadata. The _DEFAULT formatter, if not supplied to ->new, will default to the very basic Wiki::Toolkit::Formatter::Default.

As a valued partner and proud supporter of MetaCPAN, StickerYou is
happy to offer a 10% discount on all Custom Stickers,
Business Labels, Roll Labels,
Vinyl Lettering or Custom Decals. StickerYou.com
is your one-stop shop to make your business stick.
Use code METACPAN10 at checkout to apply your discount.