from __future__ import division from jinja2 runtime import LoopContext

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from __future__ import division
from jinja2.runtime import LoopContext, Context, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join
name = '_post.html'
def root(context, environment=environment):
parent_template = None
if 0: yield None
parent_template = environment.get_template('_base.html', '_post.html')
for name, parent_block in parent_template.blocks.iteritems():
context.blocks.setdefault(name, []).append(parent_block)
for event in parent_template.root_render_func(context):
yield event
def block_content(context, environment=environment):
l_entry = context.resolve('entry')
t_1 = environment.filters['typogrify']
if 0: yield None
yield u'\n<h1>%s</h1>\n' % (
t_1(environment.getattr(l_entry, 'title')),
)
blocks = {'content': block_content}
debug_info = '1=8&3=14&4=19'