Sha256: bd9a4ea06fa32f11e6abd6510ac9d9256ba063fc09b2e374909ab1bd210d2ced
Contents?: true
Size: 545 Bytes
Versions: 2
Compression:
Stored size: 545 Bytes
Contents
module MasterView module Directives #creates a link_to class Stylesheet_link < MasterView::DirectiveBase STYLESHEET_SRC_EXTRACT_REGEX = /public\/stylesheets\/(.*)/ def stag(dcs) end def etag(dcs) src = attrs_lck['src'] if attr_value.empty? && src match = STYLESHEET_SRC_EXTRACT_REGEX.match(src) ss_loc = (match) ? match[1] : src else ss_loc = attr_value end erb_content('stylesheet_link_tag ' + quote(ss_loc)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
masterview-0.2.1 | lib/masterview/directives/stylesheet_link.rb |
masterview-0.2.2 | lib/masterview/directives/stylesheet_link.rb |