lib/helmet/templates.rb in helmet-0.0.2 vs lib/helmet/templates.rb in helmet-0.0.3

- old
+ new

@@ -9,9 +9,11 @@ render :erb, template, options, locals end def render(engine, data, options = {}, locals = {}, &block) layout = options.delete(:layout) + # force template update + @@template_cache.clear unless Goliath.env == :production compiled_template = @@template_cache.fetch(data, options) do template = Tilt.new(find_template(engine, data), nil, options) end output = compiled_template.render nil, locals, &block if layout \ No newline at end of file