recipe = self.cookbook.index[name]
tag_links = [
'<a href="./?%s">%s</a>' % (urlencode({'tag':t}), t)
- for t in recipe.tags]
+ for t in (recipe.tags or [])]
template = self.env.get_template('recipe.html')
return template.render(cookbook=self.cookbook, recipe=recipe,
tag_links=tag_links)