From 2c0aa1266c1cb2a889baaa74bf423abfc8728c28 Mon Sep 17 00:00:00 2001 From: Shawn M Moore Date: Tue, 25 Sep 2012 17:01:10 -0400 Subject: Basic interpolation test --- t/001-basic.t | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 t/001-basic.t (limited to 't') 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!', +); -- cgit v1.2.3-54-g00ecf