package TemplateX::Dialect::Example;
use Template::TT3::Class::Dialect
version => 3.14,
debug => 0,
scanner => 'My::Scanner::Module',
tagset => 'My::Tagset::Module';
This module implements a subclass of Badger::Class that is specialised for creating dialect modules.
The following options can be specified when the
Template::TT3::Class::Dialect module is loaded in addition to those
inherited from the
Template::TT3::Class
and
Badger::Class
base class
modules.
This option can be used to define either a scanner module that your dialect should use, a set of configuration options for the default scanner, or both.
# specifying a scanner module
use Template::TT3::Class::Dialect
scanner => 'My::Scanner::Module';
# specifying scanner options
use Template::TT3::Class::Dialect
scanner => {
# scanner configuration options go here
};
# specifying scanner module and options
use Template::TT3::Class::Dialect
scanner => [
'My::Scanner::Module',
{
# scanner configuration options go here
}
];
The option is a shortcut for setting the $SCANNER_MODULE and/or $SCANNER package variables which will have the same effect.
our $SCANNER_MODULE = 'My::Scanner:Module';
our $SCANNER = {
# scanner configuration options go here
};
This option can be used to define either a tagset module that your dialect should use, a set of configuration options for the default tagset, or both. It is similar to scanner but sets the $TAGSET_MODULE and/or $TAGSET package variables.
This module implements the following methods in addition to those inherited from the Template::TT3::Class and Badger::Class base class modules.
Method used to define a scanner module and/or configuration. See the scanner option.
Method used to define a tagset module and/or configuration. See the tagset option.
Andy Wardley http://wardley.org/
Copyright (C) 1996-2009 Andy Wardley. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This module inherits methods from the Template::TT3::Class and Badger::Class base class modules.