Sha256: c373e7747942a0c59dd00387039291c63a7ea36484dc0123052bc8084d487c2c

Contents?: true

Size: 702 Bytes

Versions: 5

Compression:

Stored size: 702 Bytes

Contents

module Scrivito

  # This module contains helpers that render tags for the html head
  # and the end of the html body.
  # @api public
  module LayoutHelper

    # Renders all tags needed in the html head.
    # @api public
    def scrivito_header_tags
      html = "".html_safe
      html += tag('meta', :name => 'generator',
          :content => "Scrivito by Infopark AG (www.infopark.de)")
      html += include_editing_stylesheet
      html += widget_reset_stylesheet
      html
    end

    # Renders all tags needed at the end of the body tag.
    # @api public
    def scrivito_after_content_tags
      html = "".html_safe
      html += include_editing_javascript
      html
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scrivito_sdk-0.16.0 app/helpers/scrivito/layout_helper.rb
scrivito_sdk-0.15.0 app/helpers/scrivito/layout_helper.rb
scrivito_sdk-0.14.0 app/helpers/scrivito/layout_helper.rb
scrivito_sdk-0.13.0 app/helpers/scrivito/layout_helper.rb
scrivito_sdk-0.12.0 app/helpers/scrivito/layout_helper.rb