Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Made tagify work for single tag or list of tags (like tag_cloud).

  • Loading branch information...
commit 189084e3fd5ad3adc37de06892d03addec0f24d4 1 parent 5ad17ea
@geekman geekman authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  acrylamid/views/
3  acrylamid/views/
@@ -99,7 +99,8 @@ def __init__(self, title, href):
def tagify(tags):
href = lambda t: expand(self.path, {'name': safeslug(t)})
- return [Link(t, href(t)) for t in tags]
+ return [Link(t, href(t)) for t in tags] if isinstance(tags, (list, tuple)) \
+ else Link(tags, href(tags))
tags = self.populate_tags(request)
env.engine.register('tagify', tagify)

0 comments on commit 189084e

Please sign in to comment.
Something went wrong with that request. Please try again.