Class: Barber::Ember::Precompiler
Instance Method Summary
collapse
Methods inherited from Precompiler
compile, #compile, #handlebars, #precompile_function
Instance Method Details
#ember_template_precompiler ⇒ Object
5
6
7
|
# File 'lib/barber/ember/precompiler.rb', line 5
def ember_template_precompiler
@ember ||= File.new(::Ember::Source.bundled_path_for("ember-template-compiler.js"))
end
|
#precompiler ⇒ Object
9
10
11
|
# File 'lib/barber/ember/precompiler.rb', line 9
def precompiler
@precompiler = File.new(File.expand_path("../../javascripts/ember_precompiler.js", __FILE__))
end
|
#sources ⇒ Object
13
14
15
|
# File 'lib/barber/ember/precompiler.rb', line 13
def sources
[precompiler, handlebars, ember_template_precompiler]
end
|