Class: Barber::Ember::InlinePrecompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/barber/ember/precompilers.rb

Direct Known Subclasses

FilePrecompiler

Class Method Summary collapse

Class Method Details

.call(template, options = nil) ⇒ Object


5
6
7
# File 'lib/barber/ember/precompilers.rb', line 5

def call(template, options = nil)
  "Ember.Handlebars.template(#{compile(template, options)})"
end

.compile(template, options = nil) ⇒ Object


9
10
11
# File 'lib/barber/ember/precompilers.rb', line 9

def compile(template, options = nil)
  Barber::Ember::Precompiler.compile template, options
end