Sha256: 0ba343cacc4b7f4fe2cde7e9017a1e095aa69cb358a171c60ee7ed9067269c9a
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
module Fluffery module Helpers module Includes # Wraps output in IE conditional tags, the condition should be specified in the same # format as it would in the conditional itself. For example: # ie_conditional('lte IE 8') yields [if lte IE 8] # def ie_conditional(condition, &block) output = ["<!--[if #{condition}]>"] output << capture(&block) output << "<![endif]-->" output.join("\n").html_safe end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fluffery-0.0.3 | lib/fluffery/helpers/includes.rb |
fluffery-0.0.2 | lib/fluffery/helpers/includes.rb |
fluffery-0.0.1 | lib/fluffery/helpers/includes.rb |