The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Quizzer::Template - Template object

DESCRIPTION

This is an object that represents a Template. Each Template has some associated data, the fields of the template structure. To get at this data, just use $template->fieldname to read a field, and $template->fieldname(value) to write a field. Any field names at all can be used, the convention is to lower-case their names. All Templates should have a "template" field that is their name. Most have "default", "type", and "description" fields as well. The field named "extended_description" holds the extended description, if any.

Templates support internationalization. If LANG or a related environment variable is set, and you request a field from a template, it will see if "$ENV{LANG}-field" exists, and if so return that instead.

METHODS

merge

Pass this another Template and all properties of the object you call this method on will be copied over onto the other Template and any old values in the other Template will be removed.

parse

This method parses a string containing a template and stores all the information in the Template object.

any other method

Set/get a property. This supports internationalization.

AUTHOR

Joey Hess <joey@kitenet.net>