def include(self, template_name, append_to_buf=True):
        frame = sys._getframe(1)
        locals  = frame.f_locals
        globals = frame.f_globals
        assert locals.has_key('_context')
        context = locals['_context']
        # context and globals are passed to get_template() only for preprocessing.
        template = self.get_template(template_name, context, globals)
        if append_to_buf:
            _buf = locals['_buf']
        else:
            _buf = None
        return template.render(context, globals, _buf=_buf)
Evaluate template using current local variables as context.
dataset/ETHPy150Open rst2pdf/rst2pdf/rst2pdf/tenjin.py/Engine.include