def _render(self, contexts, partials):
val = self._lookup(self.value, contexts)<EOL>if not val:<EOL><INDENT>return EMPTYSTRING<EOL><DEDENT>if hasattr(val, "<STR_LIT>") and not isinstance(val, (str, dict)):<EOL><INDENT>ret = []<EOL>for item in val:<EOL><INDENT>contexts.append(item)<EOL>ret.append(self._render_children(contexts, partials))<EOL>contexts.pop()<EOL><DEDENT>if len(ret) <= <NUM_LIT:0>:<EOL><INDENT>return EMPTYSTRING<EOL><DEDENT>return self._escape('<STR_LIT>'.join(ret))<EOL><DEDENT>elif callable(val):<EOL><INDENT>new_template = val(self.text)<EOL>value = inner_render(new_template, contexts, partials, self.delimiter)<EOL><DEDENT>else:<EOL><INDENT>contexts.append(val)<EOL>value = self._render_children(contexts, partials)<EOL>contexts.pop()<EOL><DEDENT>return self._escape(value)<EOL>
render section