Module: Handlebarer::Source
- Defined in:
- lib/handlebarer/source.rb
Overview
Handlebars template engine Javascript source code
Class Method Summary collapse
-
.handlebars ⇒ Object
Handlebars source code.
-
.handlebars_path ⇒ Object
Handlebars source code path.
-
.runtime ⇒ Object
Handlebars runtime source code.
-
.runtime_path ⇒ Object
Handlebars runtime source code path.
Class Method Details
.handlebars ⇒ Object
Handlebars source code
6 7 8 |
# File 'lib/handlebarer/source.rb', line 6 def self. IO.read end |
.handlebars_path ⇒ Object
Handlebars source code path
11 12 13 |
# File 'lib/handlebarer/source.rb', line 11 def self. File.("../../../vendor/assets/javascripts/handlebars/handlebars.js", __FILE__) end |
.runtime ⇒ Object
Handlebars runtime source code
16 17 18 |
# File 'lib/handlebarer/source.rb', line 16 def self.runtime IO.read runtime_path end |
.runtime_path ⇒ Object
Handlebars runtime source code path
21 22 23 |
# File 'lib/handlebarer/source.rb', line 21 def self.runtime_path File.("../../../vendor/assets/javascripts/handlebars/runtime.js", __FILE__) end |