Module: CleanShaved

Defined in:
lib/clean_shaved.rb,
lib/clean_shaved/helpers.rb,
lib/clean_shaved/rails/clean_shaved_engine.rb

Defined Under Namespace

Modules: Helpers, Rails Classes: Config

Class Method Summary collapse

Class Method Details

.compile(name, tmpl) ⇒ Object



8
9
10
11
# File 'lib/clean_shaved.rb', line 8

def CleanShaved.compile(name, tmpl)
  CleanShaved.cache[Digest::MD5.hexdigest("#{name}:#{tmpl}").to_sym] ||= 
    CleanShaved.context.call("Handlebars.precompile", tmpl)
end

.configObject



13
14
15
# File 'lib/clean_shaved.rb', line 13

def CleanShaved.config
  @config ||= Config.new(true)
end