--- a/src/pyams_skin/metas.py Thu Jan 24 11:37:56 2019 +0100
+++ b/src/pyams_skin/metas.py Tue Jan 29 10:48:24 2019 +0100
@@ -138,15 +138,18 @@
class LinkMeta(object):
"""Link meta header"""
- def __init__(self, rel, type, href):
+ def __init__(self, rel, type, href, title=None):
self.rel = rel
self.type = type
self.href = escape_value(href)
+ self.title = title
def render(self):
- return '''<link rel="{rel}" type="{type}" href="{href}" />'''.format(rel=self.rel,
- type=self.type,
- href=self.href)
+ title = ' title="{}"'.format(self.title) if self.title else ''
+ return '''<link rel="{rel}" type="{type}" href="{href}" {title} />'''.format(rel=self.rel,
+ type=self.type,
+ href=self.href,
+ title=title)
#