Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 10724e5576
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (9 sloc) 0.543 kb
#!/usr/bin/env perl6
BEGIN { @*INC.push: './lib' }
use Test;
use Flower::TAL;
plan 1;
my $xml = '<?xml version="1.0"?>';
my $template = '<test><escaped tal:content="string"/><unescaped tal:content="structure string"/></test>';
my $tal =;
is ~$tal.parse($template, string=>'hello to you & your friend, "how are you?"'), $xml~'<test><escaped>hello to you &amp; your friend, &quot;how are you?&quot;</escaped><unescaped>hello to you & your friend, "how are you?"</unescaped></test>', 'XML escapes and structure keyword';
Jump to Line
Something went wrong with that request. Please try again.