Template::Plugin::ForumCode - Template plugin for HTML::ForumCode


Template-Plugin-ForumCode documentation Contained in the Template-Plugin-ForumCode distribution.

Index


Code Index:

NAME

Top

Template::Plugin::ForumCode - Template plugin for HTML::ForumCode

SYNOPSIS

Top

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__') %]

DESCRIPTION

Top

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.

MARKUP

Top

For a full description of available markup please see HTML::ForumCode.

PUBLIC METHODS

Top

new

Create a new instance of an HTML::ForumCode object.

SEE ALSO

Top

HTML::ForumCode, Template::Toolkit, HTML::ForumCode::Cookbook

AUTHOR

Top

Chisel Wright <chiselwright@users.berlios.de>

LICENSE

Top

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__