summaryrefslogtreecommitdiffstats
path: root/t/001-basic.t
blob: 3873076f02126bede924b7e3b5640f22c360e132 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
use Test::More;
use Text::Xslate;

my $tx = Text::Xslate->new(syntax => 'Handlebars');

is(
    $tx->render_string(
        'Hello, {{dialect}} world!',
        { dialect => 'Handlebars' },
    ),
    'Hello, Handlebars world!',
);

done_testing;