Skeleton.pm


NAME

Communiware::DE::Skeleton - Dynamic element Skeleton


SYNOPSIS

        <:Write syntax here:>


DESCRIPTION

This is skeleton of dynamic element module write documentation here


compile

        Communiware::DE::<your DE>::compile($fragment,...);

Recieves Communiware::Template::Fragment object and parameters as strings as Template::parse parsed them.

Returns perl code which should be added to compiled template.

Alters fragment object marking attributes, subtemplates and filters as used, if neccessary.

Use $fragment methods to convert parameters into perl expressions.

USe $fragment-fragment()> to cut body of your DE from the calling fragment, if it has any

Use $fragment-compile_error()> to report errors.

You can also use $fragment-make_exec> to generate perl code.


exec

        Communiware::DE::<Your DE>::exec($ctx,...)

Recieves current context (some descendant of Communiware::Context) and results of evaluation of perl expressions, passed to make_exec method.

Returns output, which should inserted into resulting document

May alter context if nessesary.

16 октябрь 2007 13:44