Class: JAPR::JavaScriptTagTemplate
Overview
Default output for JavaScript assets
Class Method Summary
collapse
Instance Method Summary
collapse
#output_path, #root_path?
Methods inherited from Template
#initialize, klass
#inherited, #subclasses
Constructor Details
This class inherits a constructor from JAPR::Template
Class Method Details
.filetype ⇒ Object
6
7
8
|
# File 'lib/japr/templates/javascript_tag_template.rb', line 6
def self.filetype
'.js'
end
|
.priority ⇒ Object
10
11
12
|
# File 'lib/japr/templates/javascript_tag_template.rb', line 10
def self.priority
-1
end
|
Instance Method Details
#html ⇒ Object
14
15
16
17
|
# File 'lib/japr/templates/javascript_tag_template.rb', line 14
def html
"<script src='#{output_path}/#{@filename}' " \
"type='text/javascript'></script>"
end
|