The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl -w

use strict;
use Test::More;

use Text::ClearSilver;

my $cs;
{
    my $hdf = Text::ClearSilver::HDF->new("foo = bar");

    is $hdf->get_value("foo"), "bar";

    $cs = Text::ClearSilver::CS->new($hdf);
}

$cs->parse_string("<?cs var: foo ?>");

is $cs->render, "bar", "cs has a hdf";

done_testing;