Skip to content

Instantly share code, notes, and snippets.

View gonz's full-sized avatar

Gonz Saavedra gonz

  • Montevideo, Uruguay
View GitHub Profile
@gonz
gonz / render.rb
Created May 11, 2012 17:16 — forked from tizoc/render.rb
class MyRender << Fiasco::Render
def render(name, locals = {})
if ENV['RACK_ENV'] == 'development' && @templates[name]
@compiled.delete(name)
declare(name, @templates[name].filename)
end
super(name, locals)
end
end