Sha256: 1bca5f871559896c67126ba0bab0ff8dc62f097f499a7a023e7944472e937c5c
Contents?: true
Size: 586 Bytes
Versions: 16
Compression:
Stored size: 586 Bytes
Contents
module Edifice module Helper # 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 end
Version data entries
16 entries across 16 versions & 1 rubygems