From 3cb2968e248cca93ab6e62e02fa733e8d7d26887 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 4 Oct 2012 16:10:13 -0500 Subject: make lambdas work with field access --- t/lambdas.t | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 t/lambdas.t (limited to 't') diff --git a/t/lambdas.t b/t/lambdas.t new file mode 100644 index 0000000..bdad45b --- /dev/null +++ b/t/lambdas.t @@ -0,0 +1,15 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use lib 't/lib'; +use Test::More; +use Test::Handlebars; + +render_ok( + '{{foo.bar.baz}} / {{{foo.bar.baz}}}', + { foo => { bar => { baz => sub { '' } } } }, + '<BAZ> / ', + "lambdas with field access" +); + +done_testing; -- cgit v1.2.3