Sha256: eaf99ea88c4c38ae6351e55494930f1c82c2bbd817b17dd43a24cfa0effea174

Contents?: true

Size: 321 Bytes

Versions: 12

Compression:

Stored size: 321 Bytes

Contents

class ComfortableMexicanSofa::Tag::Helper
  include ComfortableMexicanSofa::Tag
  
  def self.regex_tag_signature(identifier = nil)
    identifier ||= /[\w\-]+/
    /\{\{\s*cms:helper:(#{identifier}):?(.*?)\s*\}\}/
  end
  
  def content
    "<%= #{identifier}(#{params.collect{|p| "'#{p}'"}.join(', ')}) %>"
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.6.11 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.10 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.9 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.8 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.7 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.6 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.5 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.4 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.3 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.2 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.1 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.6.0 lib/comfortable_mexican_sofa/tags/helper.rb