def render(self):
context = GLOBAL_TEMPLATE_CONTEXT.copy()<EOL>context['<STR_LIT>'] = self<EOL>entries = list(self.entries)<EOL>entries.sort(key=operator.attrgetter('<STR_LIT:date>'), reverse=True)<EOL>context['<STR_LIT>'] = entries<EOL>render_to = os.path.join(CONFIG['<STR_LIT>'], '<STR_LIT>', self.slug)<EOL>if not os.path.exists(render_to):  <EOL><INDENT>os.makedirs(render_to)<EOL><DEDENT>_render(context, '<STR_LIT>', os.path.join(render_to, '<STR_LIT>'))  <EOL>context['<STR_LIT>'] = context['<STR_LIT>'][:<NUM_LIT:10>]<EOL>context['<STR_LIT>'] = datetime.datetime.now().strftime("<STR_LIT>")  <EOL>_render(context, '<STR_LIT>', os.path.join(render_to, '<STR_LIT>'))<EOL>return True<EOL>
Render html page and atom feed