# Blosxom 3.0+3i Package: Textile2 # Formats blog entries using Textile # Version 0+1i # 2004-06-24 # Taper Wickel # Modeled after Todd Larason's plugin of the same name for Blosxom 2 package Blosxom::Plugin::Textile2; # Uncomment and edit if Text/Textile.pm is not in the default # perl include path #use lib "/path/to/containing/dir"; use Text::Textile; sub run { my $self = shift; if ($self->{state}->{current_entry}->{Plugin}->{Meta}->{markup} =~ "textile") { my $body_ref = \$self->{state}->{current_entry}->{body}; my $textile = new Text::Textile; $$body_ref = $textile->process($$body_ref); } 1; } 1;