Sha256: 6984e7064461ed41b74c5023ea0a10120fdc29dc08720fed2e781c72a6039628

Contents?: true

Size: 298 Bytes

Versions: 8

Compression:

Stored size: 298 Bytes

Contents

module Rack
  module AssetHelpers
    TEMPLATE = ActionView::Base.new

    def head_code
      css_code << js_code
    end

    private
    def css_code
      TEMPLATE.stylesheet_link_tag 'iam'
    end

    def js_code
      TEMPLATE.javascript_include_tag 'iam', 'jquery.cookie'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
iam-0.3.3 lib/rack/asset_helpers.rb
iam-0.3.2 lib/rack/asset_helpers.rb
iam-0.3.1 lib/rack/asset_helpers.rb
iam-0.3.0 lib/rack/asset_helpers.rb
iam-0.2.2 lib/rack/asset_helpers.rb
iam-0.2.1 lib/rack/asset_helpers.rb
iam-0.1.12 lib/rack/asset_helpers.rb
iam-0.1.11 lib/rack/asset_helpers.rb