PET::Filter::PreMultiLang

PET::Filter::PreMultiLang

This is a special multilangual module.  It operates on dot-lang files.  This is for createing websites which have different language versions.  A ‘master’ website is created...  (FIXME: description is missing!)

Summary
PET::Filter::PreMultiLangThis is a special multilangual module.
Functions
NAME
preprocess ($file, $content)This is called from PET::Dispatcher.
substitute (\%map, $key)
slurp ($file)Reads a file.
getOne ($key)Gets ONE defined key at RUNTIME.

Functions

NAME

sub NAME

preprocess ($file, $content)

sub preprocess

This is called from PET::Dispatcher.  Should return scalar that containt the processed content.  FIXME: later this should be able to return a scalarref (content of preprocessed file?)

substitute (\%map, $key)

sub substitute

slurp ($file)

Reads a file.  Returns ‘’ if not found, otherwise returns a scalar.

getOne ($key)

Gets ONE defined key at RUNTIME.  Very hacky.

Base class for all Filter modules.
sub NAME
sub preprocess
This is called from PET::Dispatcher.
sub substitute
Close