Module: Handlebars::Amd::Rails::Source
- Defined in:
- lib/handlebars-amd-rails/rails/template.rb
Class Method Summary collapse
Class Method Details
.contents ⇒ Object
21 22 23 |
# File 'lib/handlebars-amd-rails/rails/template.rb', line 21 def self.contents @contents ||= File.read(path) end |
.context ⇒ Object
25 26 27 |
# File 'lib/handlebars-amd-rails/rails/template.rb', line 25 def self.context @context ||= ExecJS.compile(contents) end |
.path ⇒ Object
17 18 19 |
# File 'lib/handlebars-amd-rails/rails/template.rb', line 17 def self.path @path ||= File.("../../../../vendor/assets/javascripts/handlebars.js", __FILE__) end |