Class: Barber::InlinePrecompiler

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

Direct Known Subclasses

FilePrecompiler

Class Method Summary collapse

Class Method Details

.call(template, options = nil) ⇒ Object


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

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

.compile(template, options = nil) ⇒ Object


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

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