Wiki::Toolkit::Formatter::Default

Wiki::Toolkit::Formatter::Default is a formatter for Wiki::Toolkit.
Download

Wiki::Toolkit::Formatter::Default Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Kake Pugh
  • Publisher web site:
  • http://search.cpan.org/~kake/URI-Find-Delimited-0.02/lib/URI/Find/Delimited.pm

Wiki::Toolkit::Formatter::Default Tags


Wiki::Toolkit::Formatter::Default Description

Wiki::Toolkit::Formatter::Default is a formatter for Wiki::Toolkit. Wiki::Toolkit::Formatter::Default is a formatter for Wiki::Toolkit.SYNOPSIS my $store = Wiki::Toolkit::Store::SQLite->new( ... ); # See below for parameter details. my $formatter = Wiki::Toolkit::Formatter::Default->new( %config ); my $wiki = Wiki::Toolkit->new( store => $store, formatter => $formatter );METHODSnew my $formatter = Wiki::Toolkit::Formatter::Default->new( extended_links => 0, implicit_links => 1, allowed_tags => , # defaults to none macros => {}, node_prefix => 'wiki.cgi?node=' );Parameters will default to the values shown above (apart from allowed_tags, which defaults to allowing no tags).macros - be aware that macros are processed after filtering out disallowed HTML tags. Currently macros are just strings, maybe later we can add in subs if we think it might be useful.Macro example: macros => { qr/(^|b)@SEARCHBOX(b|$)/ => qq( ) }format my $html = $formatter->format( $content );Escapes any tags which weren't specified as allowed on creation, then interpolates any macros, then calls Text::WikiFormat::format (with the config set up when new was called) to translate the raw Wiki language supplied into HTML. Requirements: · Perl


Wiki::Toolkit::Formatter::Default Related Software