Subject: | DELIMITERS does not allow for the same string to be used |
The DELIMITERS option requires the 2 delimiters to be different.
my $template= 'hello, @@$foo@@, I like @@$bar@@';
my $text= fill_in_string( $template, DELIMITERS => [ '@@', '@@'],
HASH => { foo => 'toto', bar => 'tata' },
) or die $Text::Template::ERROR;
gives "End of data inside program text that began at line 1"
This may be considered a feature, but in case it isn't, the attached
patch fixes and tests this. The tests only tests valid templates, I am
not sure bogus templates need to be tested, let me know if you'd like me
to add it.
Thanks
__
mirod
Subject: | text_template_patch.p1 |
Message body not shown because it is not plain text.