22<html xmlns= " http://www.w3.org/1999/xhtml" xml:lang= " en" lang= " en" >
33<head>
44 <meta http-equiv= " content-type" content= " text/html; charset=utf-8" />
5- <title><TMPL_VAR name> </title>
5+ <title>{{ name }} </title>
66 <link media= " screen" href= " /static/styles/screen-switcher-default.css"
77 type= " text/css" id= " screen-switcher-stylesheet" rel= " stylesheet" />
88 <link rel= " stylesheet" type= " text/css" media= " scReen" href= " /static/styles/netscape4.css" />
99 <link rel= " stylesheet" type= " text/css" media= " print" href= " /static/styles/print.css" />
1010 <link rel= " alternate stylesheet" type= " text/css" media= " screen" href= " /static/styles/largestyles.css" title= " large text" />
1111 <link media= " screen" href= " /static/styles/defaultfonts.css" type= " text/css"
1212 rel= " alternate stylesheet" title= " default fonts" />
13- <meta name= " generator" content= " <TMPL_VAR generator> " >
13+ <meta name= " generator" content= " {{ generator }} " >
1414 <meta name= " keywords"
1515 content= " Python weblog blog blogger weblogger aggregator rss" >
1616 <meta name= " description" content= " Recent postings from Python-related weblogs." >
2020<body>
2121 <!-- Logo -->
2222 <h1 id= " logoheader" >
23- <a href= " /" id= " logolink" accesskey= " 1" ><img id= " logo"
24- src= " /static/images/python-logo.gif" alt= " homepage" border= " 0" /></a>
23+ <a href= " /" id= " logolink" accesskey= " 1" ><img id= " logo" src= " /static/images/python-logo.gif" alt= " homepage" border= " 0" /></a>
2524 </h1>
2625 <!-- Skip to Navigation -->
2726 <div class= " skiptonav" ><a href= " #left-hand-navigation" accesskey= " 2" ><img src= " /static/images/trans.gif" id= " skiptonav" alt= " skip to navigation" border= " 0" /></a></div>
@@ -30,38 +29,30 @@ src="/static/images/python-logo.gif" alt="homepage" border="0" /></a>
3029 <div id= " content-body" >
3130 <div id= " body-main" >
3231
33- <h1 class= " pageheading" ><TMPL_VAR name> </h1>
32+ <h1 class= " pageheading" >{{ name }} </h1>
3433
35- <p>Last update: <TMPL_VAR date>
34+ <p>Last update: {{ date }}</p >
3635
37- <TMPL_LOOP Items>
36+ {% for item in Items %}
3837
39- ### Visually distinguish articles from different days by checking for
40- ### the new_date flag . This demonstrates the <TMPL_IF varname> ... </TMPL_IF >
41- ### check .
38+ {% if item .new_date %}
39+ <h2>{{ item .new_date }}</h2 >
40+ {% endif %}
4241
43- <TMPL_IF new_date>
44- <h2><TMPL_VAR new_date></h2 >
45- </TMPL_IF>
42+ {% if item .new_channel %}
43+ <hr><h3 class = " post " ><a href = " {{ item.channel_link | e }} " title = " {{ item.channel_title | e }} " >{{ item .channel_name }}</a></h3 >
44+ {% endif %}
4645
47- ### Group consecutive articles by the same author together by checking
48- ### for the new_channel flag.
49-
50- <TMPL_IF new_channel>
51- <hr><h3 class= " post" ><a href= " <TMPL_VAR channel_link ESCAPE=" HTML" >" title= " <TMPL_VAR channel_title ESCAPE=" HTML" >" ><TMPL_VAR channel_name></a></h3>
52- </TMPL_IF>
53-
54-
55- <TMPL_IF title>
56- <h4><a href= " <TMPL_VAR link ESCAPE=" HTML" >" ><TMPL_VAR title></a></h4>
57- </TMPL_IF>
46+ {% if item.title %}
47+ <h4><a href= " {{ item.link | e }}" >{{ item.title }}</a></h4>
48+ {% endif %}
5849<p>
59- <TMPL_VAR summary>
50+ {{ item . summary }}
6051</p>
6152<p>
62- <em><a href= " <TMPL_VAR link ESCAPE= " HTML " > " ><TMPL_IF creator> by <TMPL_VAR creator> at </TMPL_IF><TMPL_VAR date> </a></em>
53+ <em><a href= " {{ item. link | e }} " >{% if item . creator %} by {{ item . creator }} at {% endif %}{{ item . date }} </a></em>
6354</p>
64- </TMPL_LOOP>
55+ {% endfor %}
6556
6657 </div>
6758 </div>
@@ -98,10 +89,10 @@ src="/static/images/python-logo.gif" alt="homepage" border="0" /></a>
9889 </ul></li>
9990 <li>Subscriptions
10091 <ul class= " level-two" >
101- <li><a href= " opml.xml" >[OPML feed]</a></li>
102- <TMPL_LOOP Channels>
103- <li><a href= " <TMPL_VAR link ESCAPE= " HTML " > " title= " <TMPL_VAR title ESCAPE= " HTML " > " ><TMPL_VAR name> </a></li>
104- </TMPL_LOOP>
92+ <li><a href= " opml.xml" >[OPML feed]</a></li>
93+ {% for channel in Channels %}
94+ <li><a href= " {{ channel. link | e }} " title= " {{ channel. title | e }} " >{{ channel . name }} </a></li>
95+ {% endfor %}
10596 </ul></li>
10697 </ul>
10798 </div>
0 commit comments