Sha256: 02a4b9f019b38225329eed8ed29fc782af59d177f5c7c88a11f3d5496552c87b
Contents?: true
Size: 464 Bytes
Versions: 27
Compression:
Stored size: 464 Bytes
Contents
module MasterView module Directives class Link_to_if < MasterView::DirectiveBase def stag(dcs) end def etag(dcs) args = parse_attr_value condition = args[0] remove_strings_from_attr_value! a = [] a << 'link_to_if '+condition a << quote(content_str) a << attr_value unless attr_value.strip.empty? self.content='' erb_content(a.join(', ')) end end end end
Version data entries
27 entries across 27 versions & 2 rubygems