# -*- coding:utf-8 -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED STOP_RENDERING = runtime.STOP_RENDERING __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 10 _modified_time = 1676236796.20774 _enable_loop = True _template_filename = 'templates/book.tmpl' _template_uri = 'book.tmpl' _source_encoding = 'utf-8' _exports = ['extra_head', 'content', 'extra_js'] def _mako_get_namespace(context, name): try: return context.namespaces[(__name__, name)] except KeyError: _mako_generate_namespaces(context) return context.namespaces[(__name__, name)] def _mako_generate_namespaces(context): ns = runtime.TemplateNamespace('helper', context._clean_inheritance_tokens(), templateuri='post_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'helper')] = ns ns = runtime.TemplateNamespace('pheader', context._clean_inheritance_tokens(), templateuri='post_header.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'pheader')] = ns ns = runtime.TemplateNamespace('comments', context._clean_inheritance_tokens(), templateuri='comments_helper.tmpl', callables=None, calling_uri=_template_uri) context.namespaces[(__name__, 'comments')] = ns def _mako_inherit(template, context): _mako_generate_namespaces(context) return runtime._inherit_from(context, 'post.tmpl', _template_uri) def render_body(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: __M_locals = __M_dict_builtin(pageargs=pageargs) post = context.get('post', UNDEFINED) parent = context.get('parent', UNDEFINED) def content(): return render_content(context._locals(__M_locals)) def extra_js(): return render_extra_js(context._locals(__M_locals)) def extra_head(): return render_extra_head(context._locals(__M_locals)) __M_writer = context.writer() __M_writer('\n') __M_writer('\n') __M_writer('\n') __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_head'): context['self'].extra_head(**pageargs) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'content'): context['self'].content(**pageargs) __M_writer('\n\n') if 'parent' not in context._data or not hasattr(context._data['parent'], 'extra_js'): context['self'].extra_js(**pageargs) __M_writer('\n') return '' finally: context.caller_stack._pop_frame() def render_extra_head(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: def extra_head(): return render_extra_head(context) parent = context.get('parent', UNDEFINED) __M_writer = context.writer() __M_writer('\n ') __M_writer(str(parent.extra_head())) __M_writer("\n \n \n") return '' finally: context.caller_stack._pop_frame() def render_content(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: def content(): return render_content(context) post = context.get('post', UNDEFINED) __M_writer = context.writer() __M_writer('\n
\n
\n
\n
\n

') __M_writer(str(post.title())) __M_writer('

\n ') __M_writer(str(post.text())) __M_writer('\n
\n
\n
\n
\n') return '' finally: context.caller_stack._pop_frame() def render_extra_js(context,**pageargs): __M_caller = context.caller_stack._push_frame() try: def extra_js(): return render_extra_js(context) __M_writer = context.writer() __M_writer('\n \n \n') return '' finally: context.caller_stack._pop_frame() """ __M_BEGIN_METADATA {"filename": "templates/book.tmpl", "uri": "book.tmpl", "source_encoding": "utf-8", "line_map": {"23": 2, "26": 3, "29": 4, "35": 0, "48": 2, "49": 3, "50": 4, "51": 5, "56": 77, "61": 90, "66": 117, "72": 7, "79": 7, "80": 8, "81": 8, "87": 79, "94": 79, "95": 84, "96": 84, "97": 85, "98": 85, "104": 92, "110": 92, "116": 110}} __M_END_METADATA """