Sha256: f6c14c716a537f50568ba6882190abe3a12022df181b6e9dee27c0a76fcfbbc8
Contents?: true
Size: 369 Bytes
Versions: 5
Compression:
Stored size: 369 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
5 entries across 5 versions & 1 rubygems