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;