diff options
Diffstat (limited to 't')
-rw-r--r-- | t/001-basic.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/001-basic.t b/t/001-basic.t new file mode 100644 index 0000000..f03c45c --- /dev/null +++ b/t/001-basic.t @@ -0,0 +1,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!', +); |