Module: Edifice::Helper

Defined in:
lib/edifice/helper.rb

Instance Method Summary collapse

Instance Method Details

#edifice_body_classesObject

the default classes that get added to the body element when a view renders the c_ in front of view_path is for historical reasons



12
13
14
# File 'lib/edifice/helper.rb', line 12

def edifice_body_classes
  %(c_#{view_path} v_#{view_name} l_#{layout_name}).html_safe
end

#edifice_meta_tagsObject

put this in your layout somewhere



4
5
6
7
8
# File 'lib/edifice/helper.rb', line 4

def edifice_meta_tags
  %(<meta name='edifice-view_path' content='#{view_path_normalized}'/>
    <meta name='edifice-view_name' content='#{view_name_normalized}'/>
    <meta name='edifice-layout' content='#{layout_name}'/>).html_safe
end