The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use t::TestJemplate tests => 1;

filters { 'tt' => 'parse_lite' };
no_diff;
run_is 'tt' => 'js';

__END__

=== CLEAR
--- tt
Bar
[% CLEAR -%]
Foo
--- js
output += 'Bar\n';
//line 2 "(unknown template)"
output = '';
output += 'Foo\n';