The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

BabelObjects::Runner::Dispatcher - parses the file and substitutes BO tags.

SYNOPSIS

  use BabelObjects::Runner::Dispatcher;

DESCRIPTION

Dispatcher parses the file and substitutes all Babel Objects tags by their value. Tags are of the form : $(aClass.aMethod).

The file is parsed within a web or no web context. When a BO tag is encountered, the dispatcher looks in the classes.xml file for an element called aClass. If it finds one, it takes the real class name, loads it and calls the aMethod on it :

   <classes>
      <parameter>
         <bookmark>BabelObjects::Component::Directory::Bookmark</bookmark>
      </parameter>
      <parameter>
         <test>BabelObjects::Component::Test::BabelObjects::Test</test>
      </parameter>
  <classes>

Then the result is written on the http output in a web context, or the standart output in a no web context.

AUTHOR

Jean-Christophe Kermagoret, jck@BabelObjects.Org (http://www.BabelObjects.Org)

SEE ALSO

perl(1).