Sha256: a46bf884ffc53e2942666300115dc468765b1d5fc509be35e3b7ab4419e976b8
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
class Assette::Reader::Css < Assette::Reader(:css) def compile @file.text end class << self def error str, stack = nil <<-CSS body:before { position: absolute; top: 0px; padding: 10px; font-size: 18px; text-align: center; width: 100%; display: block; content: #{str.inspect}; background-color: #992E40; color: white; font-weight:bold; z-index: 9999; } CSS end def comment_str '/* %s */' end def tag path <<-HTML <link href="#{path}" rel="stylesheet" type="text/css" media="all" /> HTML end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
assette-0.0.6 | lib/assette/readers/css.rb |