Sha256: e3b83fd69752342573843bbfac09549c659297843762f20f63789d0cb1bc0113

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

class CmsTag::Snippet < CmsTag::Tag
  
  def self.regex
    /\{\{\s*?(cms_snippet:.*?)\s*?\}\}/
  end
  
  def self.render_priority
    2
  end
  
  def regex
    /\{\{\s*?cms_snippet:#{Regexp.escape(label)}.*?\s*?\}\}/
  end
  
  def render
    CmsSnippet.content_for(label)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-0.0.18 lib/comfortable_mexican_sofa/cms_tags/snippet.rb