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

Version Path
edifice-1.3.0 lib/edifice/helper.rb
edifice-1.2.0 lib/edifice/helper.rb
edifice-1.1.1 lib/edifice/helper.rb
edifice-1.1.0 lib/edifice/helper.rb
edifice-1.0 lib/edifice/helper.rb
edifice-0.10.3 lib/edifice/helper.rb
edifice-0.10.2 lib/edifice/helper.rb
edifice-0.10.1 lib/edifice/helper.rb
edifice-0.10.0 lib/edifice/helper.rb
edifice-0.9.0 lib/edifice/helper.rb
edifice-0.8.0 lib/edifice/helper.rb
edifice-0.7.3 lib/edifice/helper.rb
edifice-0.7.2 lib/edifice/helper.rb
edifice-0.7.1 lib/edifice/helper.rb
edifice-0.7.0 lib/edifice/helper.rb
edifice-0.6.9 lib/edifice/helper.rb