Module: Handlebars

Defined in:
lib/handlebars.rb,
lib/handlebars/loader.rb,
lib/handlebars/version.rb

Defined Under Namespace

Classes: Loader

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.compile(*args) ⇒ Object



10
11
12
# File 'lib/handlebars.rb', line 10

def compile(*args)
  handlebars.compile(*args)
end

.handlebarsObject



18
19
20
21
22
# File 'lib/handlebars.rb', line 18

def handlebars
  Handlebars.module_eval do
    @loader.require('handlebars')
  end
end

.register_helper(name, &fn) ⇒ Object



14
15
16
# File 'lib/handlebars.rb', line 14

def register_helper(name, &fn)
  handlebars.registerHelper(name, fn)
end