Module: Integrity::Helpers::Rendering

Included in:
Integrity::Helpers
Defined in:
lib/integrity/helpers/rendering.rb

Instance Method Summary collapse

Instance Method Details

#partial(template, locals = {}) ⇒ Object



14
15
16
# File 'lib/integrity/helpers/rendering.rb', line 14

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

#show(view, options = {}) ⇒ Object



9
10
11
12
# File 'lib/integrity/helpers/rendering.rb', line 9

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

#stylesheet_hashObject



4
5
6
7
# File 'lib/integrity/helpers/rendering.rb', line 4

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