Sha256: de4aaa278931a049e453841bb43b61dc19718849c19b634cd28b584fcccad96a
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
class CmsTag::Partial < CmsTag::Tag def self.regex /\{\{\s*?(cms_partial:.*?)\s*?\}\}/ end def self.render_priority 3 end def regex /\{\{\s*?cms_partial:#{Regexp.escape(label)}.*?\s*?\}\}/ end def content "<%= render :partial => '#{self.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/partial.rb |