Sha256: 2df819d244d1c1608f8679362e4929ae0957792565f8f962db6072dc9969d7d5

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

module FeatherCms
  module ViewHelper
    def feather_cms_include_tag
      javascript_include_tag('codemirror', 'modes/htmlmixed', 'modes/javascript',
                             'modes/xml', 'modes/css', 'feather_cms') + 
      stylesheet_link_tag('codemirror')
    end

    def feather_cms_template(object_name, method, options = {})
      options[:class] = "#{options[:class]} codemirror_feather_cms"
      text_area(object_name, method, options = {})
    end

    def feather_cms_template_tag(name, content = nil, options = {})
       options[:class] = "#{options[:class]} codemirror_feather_cms"
       text_area_tag(name, content = nil, options = {})
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
feather_cms-0.0.3 lib/feather_cms/view_helper.rb
feather_cms-0.0.2 lib/feather_cms/view_helper.rb
feather_cms-0.0.1 lib/feather_cms/view_helper.rb