Class: JAPR::CssTagTemplate

Inherits:
Template show all
Defined in:
lib/japr/templates/css_tag_template.rb

Overview

Default output for CSS assets

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Template

#initialize, klass

Methods included from SubclassTracking

#inherited, #subclasses

Methods included from TemplateHelper

#output_path, #root_path?

Constructor Details

This class inherits a constructor from JAPR::Template

Class Method Details

.filetypeObject



4
5
6
# File 'lib/japr/templates/css_tag_template.rb', line 4

def self.filetype
  '.css'
end

.priorityObject



8
9
10
# File 'lib/japr/templates/css_tag_template.rb', line 8

def self.priority
  -1
end

Instance Method Details

#htmlObject



12
13
14
15
# File 'lib/japr/templates/css_tag_template.rb', line 12

def html
  "<link href='#{output_path}/#{@filename}' " \
    "rel='stylesheet' type='text/css' />"
end