Using a Custom Dialect

use Template3;

my $tt3 = Template3->new(
    dialect => 'BBCode',
);

print $tt3->fill( 
    text => 'This is [b]bold[/b] and this is [i]italic[/i]' 
);
Thus Spake Andy:

Using our new dialect is as simple as specifying the dialect option. TT3 will automatically load it from the TemplateX::Dialect::BBCode module. Now the process(), fill() and all the other methods use the new template dialect.