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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from __future__ import division
from jinja2.runtime import LoopContext, Context, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join
name = 'index.html'
def root(context, environment=environment):
parent_template = None
l_entry = context.resolve('entry')
if 0: yield None
def macro():
t_1 = []
pass
return concat(t_1)
caller = Macro(environment, macro, None, (), (), False, False, False)
yield context.call(environment.extensions['cyrax.lib.templatetags.MetaInfoExtension']._update_entry, l_entry, u'\n title: Testing Platform\n author: Alexander Solovyov\n', caller=caller)
parent_template = environment.get_template(
def macro():
t_2 = []
pass
return concat(t_2)
caller = Macro(environment, macro, None, (), (), False, False, False)
yield context.call(environment.extensions['cyrax.lib.templatetags.MetaInfoExtension']._determine_parent, l_entry, caller=caller), 'index.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_site = context.resolve('site')
if 0: yield None
yield u'\n\n<h1>Latest posts</h1>\n\n<table class="posts">\n '
l_post = missing
for l_post in environment.getattr(l_site, 'posts'):
if 0: yield None
yield u'\n <tr>\n <td class="date">%s</td>\n <td class="title"><a href="%s">%s</a></td>\n <td class="tagline">%s</td>\n </tr>\n ' % (
context.call(environment.getattr(environment.getattr(l_post, 'date'), 'strftime'), '%Y, %B %d'),
context.call(environment.getattr(l_post, 'get_url')),
l_post,
environment.getattr(l_post, 'tagline'),
)
del l_post
yield u'\n</table>\n'
blocks = {'content': block_content}
debug_info = '1=9&1=16&6=27&11=32&13=35&14=36&15=38&17=41'