Sha256: 08167cf0ad555af6efcc3ba741452b1527ac6092b22beaa0a5bd9c1935cde2c6
Contents?: true
Size: 869 Bytes
Versions: 1
Compression:
Stored size: 869 Bytes
Contents
module Guilded module Rails module ViewHelpers # Generates the JavaScript includes for each Guilded element that is used. Also # generates the initGuildedElements function and includes a call to each GUIlded # elements Init method. # # Must be called once per rendered page. You can include it just before the closing body # tag of your application layout. If no Guilded elements were called in the template, the # call to g_apply_behavior will not output anything. # def g_apply_behavior g = Guilded::Guilder.instance html = stylesheet_link_tag( g.combined_css_srcs, :cache => "cache/#{g.css_cache_name}" ) html << javascript_include_tag( g.combined_js_srcs, :cache => "cache/#{g.js_cache_name}" ) html << g.generate_javascript_init end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
midas-guilded-0.0.1 | lib/guilded/rails/view_helpers.rb |