From 350dde80bbe03ebf2f2d1168e259106c0e4a6f18 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 5 Oct 2012 13:55:56 -0500 Subject: implement {{^}} in normal blocks also, greatly simplify the logic for blocks in general --- t/blocks.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 't') diff --git a/t/blocks.t b/t/blocks.t index 153a8a9..cde7665 100644 --- a/t/blocks.t +++ b/t/blocks.t @@ -70,7 +70,6 @@ render_ok( "empty block" ); -{ local $TODO = "unimplemented"; render_ok( '{{#people}}{{name}}{{^}}{{none}}{{/people}}', { @@ -93,7 +92,7 @@ render_ok( render_ok( <<'TEMPLATE', {{#people}} -{{name}} +{{.}} {{^}} {{none}} {{/people}} @@ -113,6 +112,5 @@ Stevan Little RENDERED "inverted block shorthand (non-empty array)" ); -} done_testing; -- cgit v1.2.3