Commits

David Chambers committed e9da199

Tweaked `renderupdate` slightly.

Comments (0)

Files changed (1)

 stripskips = partial(re.compile(r'</?skip>').sub, '')
 
 md = Markdown(extensions=('meta',) + mango.settings.MARKDOWN_EXTENSIONS)
-update_template = loader.get_template('update.dhtml')
+_renderupdate = loader.get_template('update.dhtml').render
 
 def pairer(pattern):
     fn = re.compile(pattern, re.MULTILINE).split
     update.headinglevel = len(match.group('level'))
     update.html = mark_safe(convert(match.group('body'), references))
 
-    return update_template.render(Context({'update': update}))
+    return _renderupdate(Context({'update': update}))
 
 def convert():
     sub = re.compile(r'^[ ]{,3}(?:\*[ ]?){3,}[ \t]*$', re.MULTILINE).sub