Sha256: c698f538bf188f57a951c264ca53adca46db040f9c5914a0def34734547bb137

Contents?: true

Size: 301 Bytes

Versions: 46

Compression:

Stored size: 301 Bytes

Contents

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.5.11 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.10 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.9 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.8 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.7 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.6 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.5 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.4 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.3 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.2 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.1 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.5.0 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.22 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.21 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.20 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.19 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.18 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.17 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.16 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.4.15 lib/comfortable_mexican_sofa/tags/helper.rb