diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-13 06:50:21 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-13 06:50:21 +0200 |
commit | 60589fcd0c7afc4f4cf0d832fd603ae75bc9c71a (patch) | |
tree | d7595339d4470c2580e413a6867ab9272254e833 /src/SimpleMustache.cc | |
parent | 735604976485ab69cd813d13ef53505bc454c201 (diff) |
Cleaning up the Handle API a bit.
Diffstat (limited to 'src/SimpleMustache.cc')
-rw-r--r-- | src/SimpleMustache.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/SimpleMustache.cc b/src/SimpleMustache.cc index eef4b01..557a183 100644 --- a/src/SimpleMustache.cc +++ b/src/SimpleMustache.cc @@ -376,7 +376,7 @@ Balau::SimpleMustache::Fragments::const_iterator Balau::SimpleMustache::render_r for (cur = begin; cur != end; cur++) { Fragment * fr = *cur; if(fr->type == Fragment::STRING) - h->write(fr->str); + h->writeString(fr->str); } return end; } @@ -395,16 +395,16 @@ Balau::SimpleMustache::Fragments::const_iterator Balau::SimpleMustache::render_r IAssert(fr->type != Fragment::END_SECTION, "Processing an end section tag... ?"); switch (fr->type) { case Fragment::STRING: - h->write(fr->str); + h->writeString(fr->str); break; case Fragment::VARIABLE: f = sCtx->find(fr->str); if (f != sCtx->end()) { Context * var = f->second; if (var->m_type == Context::STRING) - h->write(escape(var->m_str)); + h->writeString(escape(var->m_str)); else if (var->m_type == Context::BOOLSEC) - h->write(var->m_bool ? "true" : "false"); + h->writeString(var->m_bool ? "true" : "false"); } break; case Fragment::NOESCAPE: @@ -412,9 +412,9 @@ Balau::SimpleMustache::Fragments::const_iterator Balau::SimpleMustache::render_r if (f != sCtx->end()) { Context * var = f->second; if (var->m_type == Context::STRING) - h->write(var->m_str); + h->writeString(var->m_str); else if (var->m_type == Context::BOOLSEC) - h->write(var->m_bool ? "true" : "false"); + h->writeString(var->m_bool ? "true" : "false"); } break; case Fragment::SECTION: |