Module: Edifice::Helper
- Defined in:
- lib/edifice/helper.rb
Instance Method Summary collapse
-
#edifice_body_classes ⇒ Object
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.
-
#edifice_meta_tags ⇒ Object
put this in your layout somewhere.
Instance Method Details
#edifice_body_classes ⇒ Object
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_tags ⇒ Object
put this in your layout somewhere
4 5 6 7 8 |
# File 'lib/edifice/helper.rb', line 4 def %(<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 |