Skip to content

Instantly share code, notes, and snippets.

@kapowaz
Created January 19, 2012 17:14
Show Gist options
  • Select an option

  • Save kapowaz/1641264 to your computer and use it in GitHub Desktop.

Select an option

Save kapowaz/1641264 to your computer and use it in GitHub Desktop.
Register .html as a template type within a Sinatra app by aliasing ERB
class MyApp < Sinatra::Base
Tilt.register Tilt::ERBTemplate, :html
module TemplateHelpers
def html(*args)
render :html, *args
end
end
helpers TemplateHelpers
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment