Mercurial > genshi > mirror
changeset 633:f779e566884d trunk
GenshiTutorial: add body class to show that the ''@*'' XPath in the match template works.
author | cmlenz |
---|---|
date | Wed, 05 Sep 2007 12:39:56 +0000 |
parents | e5c57d7611f2 |
children | 2910e2532a60 |
files | examples/tutorial/geddit/templates/comment.html examples/tutorial/geddit/templates/index.html examples/tutorial/geddit/templates/info.html examples/tutorial/geddit/templates/submit.html |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/tutorial/geddit/templates/comment.html +++ b/examples/tutorial/geddit/templates/comment.html @@ -6,7 +6,7 @@ <head> <title>Comment on “${link.title}”</title> </head> - <body> + <body class="comment"> <h1>Comment on “${link.title}”</h1> <p py:if="comment"> In reply to <strong>${comment.username}</strong>
--- a/examples/tutorial/geddit/templates/index.html +++ b/examples/tutorial/geddit/templates/index.html @@ -8,7 +8,7 @@ <link rel="alternate" type="application/atom+xml" title="Geddit" href="${url('/feed/')}" /> </head> - <body> + <body class="index"> <h1>News</h1> <ol py:if="links" class="links">
--- a/examples/tutorial/geddit/templates/info.html +++ b/examples/tutorial/geddit/templates/info.html @@ -47,7 +47,7 @@ }); </script> </head> - <body> + <body class="info"> <h1>${link.title}</h1> <a href="${link.url}">${link.url}</a><br /> posted by ${link.username} at ${link.time.strftime('%x %X')}<br />