Don't call lambdas for inverted sections - matches mustache.js behaviour
diff --git a/lib/src/renderer.dart b/lib/src/renderer.dart
index 725db8b..0f00b78 100644
--- a/lib/src/renderer.dart
+++ b/lib/src/renderer.dart
@@ -298,18 +298,9 @@
'Value was missing, inverse-section: ${node.value}',
_templateName, node.line, node.column);
}
-
- } else if (value is Function) {
- var context = new _LambdaContext(node, this, isSection: true);
- var output = value(context);
- context.close();
- //FIXME Poos. I have no idea what this really is for ?????
- if (output == false) {
- // FIXME not sure what to output here, result of function or template
- // output?
- _write(output);
- }
+ } else if (value is Function) {
+ // Do nothing.
} else {
throw new TemplateException(