summaryrefslogtreecommitdiffstats
path: root/t/001-basic.t
blob: f03c45c4fc13414ea82d9590c0ccd8b98598e7c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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!',
);