Sha256: 7ffffffd3c6ee667e525e0f77b1c86bcf498c615f1e0508eed978303deaa820e
Contents?: true
Size: 376 Bytes
Versions: 17
Compression:
Stored size: 376 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 regex_tag_signature self.class.regex_tag_signature(label) end def content "<%= #{label}(#{params.split(':').collect{|p| "'#{p}'"}.join(', ')}) %>" end end
Version data entries
17 entries across 17 versions & 2 rubygems