Skip to content

Instantly share code, notes, and snippets.

@tizoc
Created May 10, 2012 17:54
Show Gist options
  • Save tizoc/2654745 to your computer and use it in GitHub Desktop.
Save tizoc/2654745 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