Sha256: 2c60ef2427fe595874adab6957d485fb71b7d733857ea532666fa058719589a5
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
require 'handlebars/loader' module Handlebars @loader = Loader.new module_function def compile(*args) handlebars.compile(*args) end def register_helper(name, &fn) handlebars.registerHelper(name, fn) end def register_partial(name, str) handlebars.registerPartial(name, str) end def handlebars Handlebars.module_eval do @loader.require('handlebars') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hbs_plus-0.1.3 | lib/handlebars.rb |