Class: JAPR::CssTagTemplate
Overview
Default output for CSS assets
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Template
#initialize, klass
#inherited, #subclasses
#output_path, #root_path?
Constructor Details
This class inherits a constructor from JAPR::Template
Class Method Details
.filetype ⇒ Object
4
5
6
|
# File 'lib/japr/templates/css_tag_template.rb', line 4
def self.filetype
'.css'
end
|
.priority ⇒ Object
8
9
10
|
# File 'lib/japr/templates/css_tag_template.rb', line 8
def self.priority
-1
end
|
Instance Method Details
#html ⇒ Object
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
|