Sha256: da824abe5d8fc7d0317152f614f0669851e2bea5b737449a6a3e380b221a6910
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
require 'tilt' module HappyHelpers module Templates def self.render(name, scope = nil, variables = {}, &block) load("views/%s" % name).render(scope, variables, &block) end def self.load(name) if false # Freddie.env.production? @templates ||= {} @templates[name] ||= Tilt.new(name, default_encoding: 'utf-8') else Tilt.new(name, default_encoding: 'utf-8') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
happy-helpers-0.1.0.pre.1 | lib/happy-helpers/templates.rb |
happy-helpers-0.0.2 | lib/happy-helpers/templates.rb |