### ----------------------------------------------------
### -- Flower
### -- Licenses: 
### -- Authors: 
### -- File: t/05-custom-modifiers.t
### ----------------------------------------------------
#!/usr/bin/env perl6

## TODO: Separate out the string: parsing from the uc: parsing.
## Add a separate set of tests for Flower::Utils::Text, and one
## for all modifiers in the DefaultModifiers set.

use lib <t/lib lib>;

use Test;
use Flower::TAL;
use Example::Modifiers;

plan 1;

my $xml = '<?xml version="1.0"?>';

my $template = '<test><woah tal:replace="woah:crazy"/></test>';
my $tal = Flower::TAL.new();

$tal.add-tales(Example::Modifiers);

is ~$tal.parse($template, crazy => 'hello world'), $xml~'<test>Woah, hello world, that\'s awesome!</test>', 'custom modifiers';



