Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6f23e226fe
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (28 sloc) 0.501 kb
use v6;
BEGIN { @*INC.unshift: './lib'; }
use Test;
use Template6;
plan 1;
my $t6 = Template6.new;
$t6.add-path: 't/templates';
my $wanted = "<html>
<head>
<title>If Test</title>
</head>
<body>
<p>This is true</p>
<p>As is this</p>
<p>And the string matches</p>
<p>The else worked properly</p>
<p>Elseif worked</p>
<p>Unless works</p>
</body>
</html>
";
is $t6.process(
'if',
:shouldbetrue(True),
:shouldbefalse(False),
:astring("A string"),
:anumber(7)
),$wanted, 'If statement.';
Jump to Line
Something went wrong with that request. Please try again.