Sha256: c1a8da34ea7ce2dab3527dbefcf769758459358cdf02302a439de20aacf54d76

Contents?: true

Size: 299 Bytes

Versions: 8

Compression:

Stored size: 299 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
comfortable_mexican_sofa-1.0.51 lib/comfortable_mexican_sofa/cms_tag/helper.rb
comfortable_mexican_sofa-1.0.50 lib/comfortable_mexican_sofa/cms_tag/helper.rb
comfortable_mexican_sofa-1.0.49 lib/comfortable_mexican_sofa/cms_tag/helper.rb
comfortable_mexican_sofa-1.0.48 lib/comfortable_mexican_sofa/cms_tag/helper.rb
lucy_cms-0.0.6 lib/LucyCMS/cms_tag/helper.rb
lucy_cms-0.0.5 lib/LucyCMS/cms_tag/helper.rb
lucy_cms-0.0.4 lib/LucyCMS/cms_tag/helper.rb
comfortable_mexican_sofa-1.0.47 lib/comfortable_mexican_sofa/cms_tag/helper.rb