Template.pm


NAME

Communiware::Datatype::Template - implements Template datatype


SYNOPSIS

Implements item datatype which contain text, parsable by Communiware::Template


DESCRIPTION

Template is a datatype which contain text in Communiware template language (HTML with dynamic elements).

Upon upload it is syntactically validated


FUNCTIONS

save

returns unchanged text if it is correct or dies with parser error message

upload

Reads text from given filehandle into scalar, converts encoding if neccessary and returns it

get


returns unchanged text

methods

No additional methods defined

options

No additional options defined

set_errorInfo

syntax

set_errorInfo(filename,linenumber);

Should be called before get or upload methods. Sets file name which should be reported in HTML validator messages and line number which should be added to line number reported by validator.

This information would be cleared out upon completing validation

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