| Template-Plugin-ForumCode documentation | Contained in the Template-Plugin-ForumCode distribution. |
Template::Plugin::ForumCode - Template plugin for HTML::ForumCode
Standard usage in a Template Toolkit file:
# load the TT module
[% USE ForumCode %]
# ForumCodify some text
[% ForumCode.forumcode('[b]bold[/u] [u]underlined[/u] [i]italic[/i]') %]
[% ForumCode.forumcode('**bold** __underlined__') %]
This module provides the Template::Toolkit plugin for HTML::ForumCode.
ForumCode allows end-users (of a web-site) limited access to a set of HTML markup through a HTML-esque syntax.
For a full description of available markup please see HTML::ForumCode.
Create a new instance of an HTML::ForumCode object.
HTML::ForumCode, Template::Toolkit, HTML::ForumCode::Cookbook
Chisel Wright <chiselwright@users.berlios.de>
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| Template-Plugin-ForumCode documentation | Contained in the Template-Plugin-ForumCode distribution. |
package Template::Plugin::ForumCode; # vim: ts=8 sts=4 et sw=4 sr sta use strict; use warnings; use base qw{ Template::Plugin }; use base qw{ Template::Plugin::HTML }; use version; our $VERSION = qv('0.0.5')->numify; use base qw{HTML::ForumCode}; sub new { my ($class, $context, @args) = @_; # TODO - I'm sure this could be nicer my $new_obj = bless {}, $class; $new_obj->init; return $new_obj; } 1; __END__