Skip to content

Instantly share code, notes, and snippets.

@nesquena
Created May 5, 2011 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nesquena/956825 to your computer and use it in GitHub Desktop.
Save nesquena/956825 to your computer and use it in GitHub Desktop.
This is a partial
require 'rubygems'
require 'sinatra/base'
require 'padrino-helpers'
require 'erubis'
class SimpleApp < Sinatra::Base
include Padrino::Helpers
get "/" do
erb :demo
end
end
SimpleApp.run!
Note the explicit engine here will work in edge padrino:
<%= partial("foo", :engine => :erb) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment