Module: Typekit::ViewHelper
- Defined in:
- app/helpers/typekit/view_helper.rb
Instance Method Summary collapse
Instance Method Details
#typekit(kit_id) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/typekit/view_helper.rb', line 3 def typekit(kit_id) return if kit_id == '- YOUR KIT ID HERE -' content_tag :script, nil, src: "//use.typekit.com/#{kit_id}.js", async: true content_tag :script, "try{Typekit.load({ async: true });}catch(e){}" end |