Sha256: b1d6bfb065f181af1a2994b6f036731ade61d9a9eeeb60c696308c11fc2c4e07
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
module Crystal module ViewHelpers def meta_tag(name) meta.tag_by_name(name).value_for_context(self) end def meta_tags(pattern = //) meta.tags_by_pattern(pattern).map{|t| tag(:meta, t.name_key => t.name, :content => t.value_for_context(self)) }.join("\n").html_safe end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
crystalmeta-1.0.0 | lib/crystal/view_helpers.rb |
crystalmeta-0.9.4 | lib/crystal/view_helpers.rb |