Sha256: 88f077176c628626e8af5b23714085cf9fec4292b9d60b573314a693687975a3
Contents?: true
Size: 517 Bytes
Versions: 28
Compression:
Stored size: 517 Bytes
Contents
module Workarea module SchemaOrgHelper def render_schema_org(schema) tag.script(schema.to_json.html_safe, type: 'application/ld+json') end def email_action_schema(target, name, description = nil) { '@context': 'http://schema.org', '@type': 'EmailMessage', 'potentialAction': { '@type': 'ViewAction', 'target': target, 'url': target, 'name': name }, 'description': description || name } end end end
Version data entries
28 entries across 28 versions & 1 rubygems