src/pyams_skin/metas.py
changeset 507 1c7bd4ccfb32
parent 446 6a8890f9c810
child 513 39d19a6997e5
--- a/src/pyams_skin/metas.py	Wed Jan 16 11:56:44 2019 +0100
+++ b/src/pyams_skin/metas.py	Wed Jan 16 19:13:01 2019 +0100
@@ -116,6 +116,19 @@
 
 
 @implementer(IMetaHeader)
+class SchemaMeta(object):
+    """Schema.org property meta header"""
+
+    def __init__(self, name, value):
+        self.name = name
+        self.value = value
+
+    def render(self):
+        return '''<meta itemprop="{name}" content="{value}" />'''.format(name=self.name,
+                                                                         value=self.value)
+
+
+@implementer(IMetaHeader)
 class LinkMeta(object):
     """Link meta header"""