Sha256: 455c3e452795cb8832f3ea111ac1cec783042117beb128d51c73da34575d8937

Contents?: true

Size: 622 Bytes

Versions: 8

Compression:

Stored size: 622 Bytes

Contents

module Integrity
  module Helpers
    module Rendering
      def stylesheets(*sheets)
        sheets.each { |sheet|
          haml_tag(:link, :href => root_path("/#{sheet}.css"),
            :type => "text/css", :rel => "stylesheet")
        }
      end

      def stylesheet_hash
        @_hash ||= Digest::MD5.file(options.views + "/integrity.sass").hexdigest
      end

      def show(view, options={})
        @title = breadcrumbs(*options[:title])
        haml view
      end

      def partial(template, locals={})
        haml("_#{template}".to_sym, :locals => locals, :layout => false)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
foca-integrity-0.1.9.2 lib/integrity/helpers/rendering.rb
foca-integrity-0.1.9.3 lib/integrity/helpers/rendering.rb
gforces-integrity-0.1.9.3 lib/integrity/helpers/rendering.rb
gforces-integrity-0.1.9.4 lib/integrity/helpers/rendering.rb
imbriaco-integrity-0.1.9.2.1 lib/integrity/helpers/rendering.rb
imbriaco-integrity-0.1.9.2 lib/integrity/helpers/rendering.rb
integrity-0.1.9.3 lib/integrity/helpers/rendering.rb
integrity-0.1.9.2 lib/integrity/helpers/rendering.rb