summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-05 13:55:56 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-05 13:55:56 -0500
commit350dde80bbe03ebf2f2d1168e259106c0e4a6f18 (patch)
treef70c1ba2a6849887adf75b1027c1667959f10542 /t
parentab64f8c31f63d5be9fb109fb062bb562064553b9 (diff)
downloadtext-handlebars-350dde80bbe03ebf2f2d1168e259106c0e4a6f18.tar.gz
text-handlebars-350dde80bbe03ebf2f2d1168e259106c0e4a6f18.zip
implement {{^}} in normal blocks
also, greatly simplify the logic for blocks in general
Diffstat (limited to 't')
-rw-r--r--t/blocks.t4
1 files changed, 1 insertions, 3 deletions
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;