Class: Barber::Emblem::FilePrecompiler

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

Class Method Summary collapse

Class Method Details

.call(template) ⇒ Object



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

def call(template)
  "Handlebars.template(#{compile(template)});"
end

.compile(template) ⇒ Object



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

def compile(template)
  Barber::Emblem::Precompiler.compile template
end