Changes between Version 48 and Version 49 of GenshiTutorial
- Timestamp:
- Aug 31, 2007, 12:53:19 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiTutorial
v48 v49 930 930 {{{ 931 931 #!genshi 932 <link rel="alternate" type="application/atom+xml" title="Geddit News"932 <link rel="alternate" type="application/atom+xml" title="Geddit" 933 933 href="${url('/feed/')}" /> 934 934 }}} … … 959 959 }}} 960 960 961 Note that this method dispatches to different templates depending on whether the `id` parameter was provided. So, for the URL `/feed/`, we'll render the list of links using the template `index.xml`, and for the URL `/feed/{link_id}/`, we'll render a link and alist of related comments using the template `info.xml`.961 Note that this method dispatches to different templates depending on whether the `id` parameter was provided. So, for the URL `/feed/`, we'll render the list of links using the template `index.xml`, and for the URL `/feed/{link_id}/`, we'll render a link and the list of related comments using the template `info.xml`. 962 962 963 963 The templates for this are also pretty simple. First, `geddit/templates/index.xml`: