Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 10724e5576
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (13 sloc) 0.5 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><dump tal:content="dump:object" tal:attributes="type what:object"/></test>';
my $tal = Flower::TAL.new();
my %ahash = {
'anarray' => [ 'one', 'two', 'three' ],
}
$tal.add-tales('Debug');
is ~$tal.parse($template, object => %ahash), $xml~'<test><dump type="Hash">{"anarray" => ["one", "two", "three"]}</dump></test>', 'dump: and what: modifiers';
Jump to Line
Something went wrong with that request. Please try again.