summaryrefslogtreecommitdiff
path: root/src/SimpleMustache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SimpleMustache.cc')
-rw-r--r--src/SimpleMustache.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/SimpleMustache.cc b/src/SimpleMustache.cc
index 8dffc74..f14d460 100644
--- a/src/SimpleMustache.cc
+++ b/src/SimpleMustache.cc
@@ -340,13 +340,12 @@ Balau::SimpleMustache::Fragments::iterator Balau::SimpleMustache::render_r(IO<Ha
f = sCtx->find(fr->str);
if (f != sCtx->end()) {
Context * var = f->second;
- Assert((var->m_type == Context::BOOLSEC) || (var->m_type == Context::CONTEXTLIST));
- if ((var->m_type == Context::BOOLSEC) && (var->m_bool)) {
- cur = render_r(h, ctx, fr->str, ++cur, false, idx);
- break;
- } else if (var->m_type == Context::CONTEXTLIST) {
+ if (var->m_type == Context::CONTEXTLIST) {
cur = render_r(h, var, fr->str, ++cur, false, -1);
break;
+ } else if (((var->m_type == Context::BOOLSEC) && (var->m_bool)) || (var->m_type != Context::BOOLSEC)) {
+ cur = render_r(h, ctx, fr->str, ++cur, false, idx);
+ break;
}
}
cur = render_r(h, NULL, fr->str, ++cur, true, -1);