Module: Crystal::ViewHelpers
- Defined in:
- lib/crystal/view_helpers.rb
Instance Method Summary collapse
Instance Method Details
#meta_tag(name) ⇒ Object
3 4 5 |
# File 'lib/crystal/view_helpers.rb', line 3 def (name) .tag_by_name(name).value_for_context(self) end |
#meta_tags(pattern = //) ⇒ Object
7 8 9 10 11 |
# File 'lib/crystal/view_helpers.rb', line 7 def (pattern = //) .(pattern).map{|t| tag(:meta, t.name_key => t.name, :content => t.value_for_context(self)) }.join("\n").html_safe end |