summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-26 08:01:18 -0800
committerPixel <pixel@nobis-crew.org>2011-11-26 08:01:18 -0800
commitdcbf05840a6b38dd56367fd68182db9c61f9e61d (patch)
treeb22d844cf17bf542326cfd6121253e2f100e773f /src
parent5bfc157171563809b78a00ad74b0e7a9690a17f0 (diff)
Adding a few todo-like comments in the SimpleMustache code - not that I actually intend to implement them anyway...
Diffstat (limited to 'src')
-rw-r--r--src/SimpleMustache.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SimpleMustache.cc b/src/SimpleMustache.cc
index e87d08d..a7b2c45 100644
--- a/src/SimpleMustache.cc
+++ b/src/SimpleMustache.cc
@@ -270,6 +270,9 @@ void Balau::SimpleMustache::setTemplate(IO<Handle> _h) {
curFragment->type = Fragment::NOESCAPE;
break;
case ENDSECTION:
+ // note: it'd be a nice optimization here to remember and find the
+ // locations of the start section, so to point the start section
+ // at its end, to avoid useless loops in the renderer.
curFragment->type = Fragment::END_SECTION;
break;
case INVERTED: