NAME

Orze::Sources - Superclass of all Orze::Sources::

SYNOPSIS

package Orze::Sources::Foo;

use strict;
use warnings;
use base qw( Orze::Sources );
use Text::Foo;

sub process {
    # do some cool stuff
}

METHODS

new

Create the source object, using the $page tree and the $variables hash.

evaluate

Do the evaluation. You need to subclass it !

cleanpath

Delete .. and add data/ prefix to paths used in driver modules.

It's not really intended to be safe, only to help to enforce to only use data in data/.

warning

Display a warning message during the processing, giving information on the current page, the current source and the current variable.

file

If there an attribute file in the variable, use it. Otherwise, use the name of page.

If there is an argument, use it as a suffix.