Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: cb40118467
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (13 sloc) 0.529 kb
#!/usr/bin/env perl6
BEGIN { @*INC.unshift: './lib' }
use Test;
use Flower::TAL;
plan 2;
my $xml = '<?xml version="1.0"?>';
## test 1
my $template = '<test><i tal:content="default">The default text</i></test>';
my $tal =;
is ~$tal.parse($template), $xml~'<test><i>The default text</i></test>', 'tal:content with default';
## test 2
$template = '<test><i tal:replace="default">The default text</i></test>';
is ~$tal.parse($template), $xml~'<test>The default text</test>', 'tal:replace with default';
Jump to Line
Something went wrong with that request. Please try again.