Skip to content

Instantly share code, notes, and snippets.

@gonz
Forked from tizoc/render.rb
Created May 11, 2012 17:16
Show Gist options
  • Save gonz/2661091 to your computer and use it in GitHub Desktop.
Save gonz/2661091 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment