in reply to What is the character for end of string in template Toolkit?
The regular '$' works just fine for me (Perl 5.8.8 on Linux, TT-2.20 — just in case it matters):
#!/usr/bin/perl use Template; my $template = Template->new(); my $input = q{[% "Blah, Blah," | replace(',$', '') %]}; $template->process(\$input) || die $template->error(); # output "Bla +h, Blah"
|
|---|