diff options
Diffstat (limited to 't/basic.t')
-rw-r--r-- | t/basic.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/basic.t b/t/basic.t new file mode 100644 index 0000000..28d54c1 --- /dev/null +++ b/t/basic.t @@ -0,0 +1,18 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; + +use Text::Handlebars; + +my $tx = Text::Handlebars->new; + +is( + $tx->render_string( + 'Hello, {{dialect}} world!', + { dialect => 'Handlebars' }, + ), + 'Hello, Handlebars world!', +); + +done_testing; |