Sha256: 08fc68b1fe6f81d59f8076cc7424991e73093f943c5c04e24468dd54dc895e64
Contents?: true
Size: 438 Bytes
Versions: 3
Compression:
Stored size: 438 Bytes
Contents
module Octopress module Ink module LocalAssets class Css < LocalAssets::Asset def media path.to_s.scan(/@(.+?)\./).flatten[0] || 'all' end def destination File.join(base, filename.sub(/@(.+?)\./,'.')) end def tag "<link href='#{Filters.expand_url(destination)}' media='#{media}' rel='stylesheet' type='text/css'>" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems