Mercurial > hg-website
view filters.py @ 349:fb3ce83c1a48
download: use sources.js instead of jinja static templates
See http://mercurial.selenic.com/wiki/BinaryReleasePlan
1. [hg-website] update the main page (templates/base.html and
static/js/download.js) to use sources.js as a dynamic binary release
information source instead of using a jinja template maintained as part
of the web site. templates/data no longer required; removed.
2. [hg-website-content] update the /downloads page use the sources.js
information also.
This changes some of the detection and package naming, naturally, but
that likely must be addressed in latest.dat files or in the protocol for
creating sources.js.
author | David Champion <dgc@uchicago.edu> |
---|---|
date | Sat, 20 Nov 2010 19:53:07 -0600 |
parents | 3e6869f76b8d |
children |
line wrap: on
line source
import markdown as _markdown from jinja2 import Markup md = _markdown.Markdown(extensions=['toc'], safe_mode=False) def mdown(value): return Markup(md.convert(value))