summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorShawn M Moore <code@sartak.org>2012-09-25 17:01:10 -0400
committerShawn M Moore <code@sartak.org>2012-09-25 17:01:10 -0400
commit2c0aa1266c1cb2a889baaa74bf423abfc8728c28 (patch)
treeac1ea2e8af34890a8014aebf24543b8eb6bbf73c /t
parent506392c2485e0da857570b7882b0e90c7d5cf299 (diff)
downloadtext-handlebars-2c0aa1266c1cb2a889baaa74bf423abfc8728c28.tar.gz
text-handlebars-2c0aa1266c1cb2a889baaa74bf423abfc8728c28.zip
Basic interpolation test
Diffstat (limited to 't')
-rw-r--r--t/001-basic.t14
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!',
+);