# HG changeset patch # User Steve Losh # Date 1254621181 14400 # Node ID cebed91e780d96163abbff8c4d93ec6b5a57af46 # Parent d662cba2afb1e270e1f044726146f1c830aeaae6 Add a sample of passing the download list with jinja. diff -r d662cba2afb1 -r cebed91e780d templates/base.html --- a/templates/base.html Thu Sep 24 18:00:24 2009 -0400 +++ b/templates/base.html Sat Oct 03 21:53:01 2009 -0400 @@ -1,3 +1,5 @@ +{% set downloads = {'1.3.1': {'windows': 'linkwin', 'os.x': 'linkosx'}} %} + diff -r d662cba2afb1 -r cebed91e780d templates/frontpage.html --- a/templates/frontpage.html Thu Sep 24 18:00:24 2009 -0400 +++ b/templates/frontpage.html Sat Oct 03 21:53:01 2009 -0400 @@ -34,6 +34,17 @@
+

Download

+ {% for version in downloads %} +

{{ version }}

+ + + {% endfor %} +

Quick Start

Clone a project and create a patch