Module: Integrity::Helpers::Rendering
- Included in:
- Integrity::Helpers
- Defined in:
- lib/integrity/helpers/rendering.rb
Instance Method Summary collapse
- #partial(template, locals = {}) ⇒ Object
- #show(view, options = {}) ⇒ Object
- #stylesheet_hash ⇒ Object
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, ={}) @title = (*[:title]) haml view end |
#stylesheet_hash ⇒ Object
4 5 6 7 |
# File 'lib/integrity/helpers/rendering.rb', line 4 def stylesheet_hash @_hash ||= Digest::MD5.file( .views + "/integrity.sass").tap { |file| file.hexdigest } end |