Sha256: c87674246cd870b693a0d118c5c4cd8894fb3e45a6108738538f78d32aa52027
Contents?: true
Size: 549 Bytes
Versions: 5
Compression:
Stored size: 549 Bytes
Contents
module EdificeHelper # put this in your layout somewhere 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 # 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 def edifice_body_classes %(c_#{view_path} v_#{view_name} l_#{layout_name}").html_safe end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
edifice-0.0.5 | lib/edifice_helper.rb |
edifice-0.0.4 | lib/edifice_helper.rb |
edifice-0.0.3 | lib/edifice_helper.rb |
edifice-0.0.2 | lib/edifice_helper.rb |
edifice-0.0.1 | lib/edifice_helper.rb |