changeset 14:86118cd8912e

display what tags we are talking about
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 05 May 2010 22:45:25 -0700
parents af87537031b0
children 1701e5b0b0eb
files taginthemiddle/handlers.py taginthemiddle/templates/tags.html
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/taginthemiddle/handlers.py
+++ b/taginthemiddle/handlers.py
@@ -94,16 +94,17 @@ class ViewTags(GenshiHandler):
         path = request.path_info.split('/')
         try:
             index = path.index(app.tags_url)
         except ValueError:
             raise HandlerMatchException
         self.tags = path[index+1:]
         if not self.tags:
             raise HandlerMatchException
+        self.data['tags'] = self.tags
 
     @classmethod
     def match(cls, app, request):
         # check the method
         if request.method not in cls.methods:
             return None
 
         try:
--- a/taginthemiddle/templates/tags.html
+++ b/taginthemiddle/templates/tags.html
@@ -1,7 +1,7 @@
 <html>
 <head>
-<title>Tags</title>
+<title>${' + '.join(tags)}</title>
 </head>
 <body>
 </body>
 </html>