Sha256: ee920e8aa8c5041e48551666db03ee6690097e36aa5453aa87539dfec7f59452

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

module SeoFriendly

  class MetaRenderer

    def self.render(container, context)
      tags = ''
      tags << context.content_tag(:meta, nil, content: container.title, name: 'title')
      tags << context.content_tag(:meta, nil, content: container.description, name: 'description')
      tags << context.content_tag(:meta, nil, content: container.keywords, name: 'keywords')
      context.raw(tags)
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
seo_friendly-0.0.2 lib/seo_friendly/renderer/meta_render.rb
seo_friendly-0.0.1 lib/seo_friendly/renderer/meta_render.rb