Class: ComfortableMexicanSofa::Tag::Helper
Constant Summary
TOKENIZER_REGEX
Instance Attribute Summary
#label, #page, #params, #parent
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.regex_tag_signature(label = nil) ⇒ Object
4
5
6
7
|
# File 'lib/comfortable_mexican_sofa/tags/helper.rb', line 4
def self.regex_tag_signature(label = nil)
label ||= /[\w\-]+/
/\{\{\s*cms:helper:(#{label}):?(.*?)\s*\}\}/
end
|
Instance Method Details
#content ⇒ Object
9
10
11
|
# File 'lib/comfortable_mexican_sofa/tags/helper.rb', line 9
def content
"<%= #{label}(#{params.collect{|p| "'#{p}'"}.join(', ')}) %>"
end
|