Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

output all assets tags

  • Loading branch information...
commit 3bcfc0b137f2450c049f63b271ece9c2016fca03 1 parent 9bbf033
Antono Vasiljev authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/markitup_helper.rb
12 lib/markitup_helper.rb
View
@@ -3,12 +3,12 @@ module MarkitupHelper
def include_markitup_assets(options = {})
options[:sets] ||= 'default'
options[:skin] ||= 'markitup'
-
- javascript_include_tag File.join(MARKITUP_ASSETS_BASE, 'jquery.markitup.pack.js')
- javascript_include_tag File.join(MARKITUP_ASSETS_BASE, 'sets', options[:sets].to_s, 'set.js')
-
- stylesheet_link_tag File.join(MARKITUP_ASSETS_BASE, 'skins', options[:skin].to_s, 'style.css')
- stylesheet_link_tag File.join(MARKITUP_ASSETS_BASE, 'sets', options[:sets].to_s, 'style.css')
+ html = []
+ html << javascript_include_tag File.join(MARKITUP_ASSETS_BASE, 'jquery.markitup.pack.js')
+ html << javascript_include_tag File.join(MARKITUP_ASSETS_BASE, 'sets', options[:sets].to_s, 'set.js')
+ html << stylesheet_link_tag File.join(MARKITUP_ASSETS_BASE, 'skins', options[:skin].to_s, 'style.css')
+ html << stylesheet_link_tag File.join(MARKITUP_ASSETS_BASE, 'sets', options[:sets].to_s, 'style.css')
+ html.join("\n")
end
def init_markitup_for(css3_selector)
Please sign in to comment.
Something went wrong with that request. Please try again.