Module: Handlebarer::Source

Defined in:
lib/handlebarer/source.rb

Overview

Handlebars template engine Javascript source code

Class Method Summary collapse

Class Method Details

.handlebarsObject

Handlebars source code



6
7
8
# File 'lib/handlebarer/source.rb', line 6

def self.handlebars
  IO.read handlebars_path
end

.handlebars_pathObject

Handlebars source code path



11
12
13
# File 'lib/handlebarer/source.rb', line 11

def self.handlebars_path
  File.expand_path("../../../vendor/assets/javascripts/handlebars/handlebars.js", __FILE__)
end

.runtimeObject

Handlebars runtime source code



16
17
18
# File 'lib/handlebarer/source.rb', line 16

def self.runtime
  IO.read runtime_path
end

.runtime_pathObject

Handlebars runtime source code path



21
22
23
# File 'lib/handlebarer/source.rb', line 21

def self.runtime_path
  File.expand_path("../../../vendor/assets/javascripts/handlebars/runtime.js", __FILE__)
end