_posts = []
for (year, month, day), posts in blog_dict.iteritems():
for post in posts:
if _test_post(post, tree):
_posts.append((
_posts = []
for (year, month, day), posts in blog_dict.iteritems():
for post in posts:
if _test_post(post, tree):
_posts.append((
- '/'.join((year, month, day, post[0].replace('.tmpl', '.html'))),
+ year, month, day,
+ '/'.join((year, month, day, post[0][:-len("tmpl")] + "html")),