Sha256: 372598c5ecfa0ccdb60a113630a47d16eb3204aebd4d714ab585360039826646
Contents?: true
Size: 522 Bytes
Versions: 4
Compression:
Stored size: 522 Bytes
Contents
module Octopress module Assets class Stylesheet < Asset def initialize(plugin, type, file, media) @file = file @type = type @root = plugin.assets_path @dir = File.join(plugin.namespace, type) @plugin_type = plugin.type @media = media || 'all' @exists = {} end def media @media end def tag "<link href='/#{File.join(@dir, @file)}' media='#{@media}' rel='stylesheet' type='text/css'>" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems