app/helpers/scrivito/layout_helper.rb in scrivito_sdk-0.16.0 vs app/helpers/scrivito/layout_helper.rb in scrivito_sdk-0.17.0
- old
+ new
@@ -3,26 +3,19 @@
# 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.
+ # 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
+ generator_meta_tag + include_editing_stylesheet + widget_reset_stylesheet
end
- # Renders all tags needed at the end of the body tag.
+ # 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
+ include_editing_javascript
end
end
end