The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Angerwhale::Content::FilterFactory - load filters and return the filter subs

SYNOPSIS

This module loads the Article filters in Angerwhale::Content::Filter and returns an initialized filter subroutine.

METHODS

new($appliction)

Create a new FilterFactory for Angerwhale application $application.

get_filters(@names)

Returns initialized filter subroutines for each class mentioned in @names. The Angerwhale::Content::Filter:: part is tacked on to the beginning of anything you pass.

An exception will be thrown if the entry in @names can't be loaded or doesn't return a proper filter.

AUTHOR

Jonathan Rockway

TODO

  • Implement an available_filters method

  • allow "foo" instead of Angerwhale::Content::Filter::Foo