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.3.3 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.3.2 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.3.1 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.3.0 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.2.8 lib/comfortable_mexican_sofa/tags/helper.rb
comfortable_mexican_sofa-1.2.7 lib/comfortable_mexican_sofa/tags/helper.rb