Created
May 5, 2011 10:15
-
-
Save nesquena/956825 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a partial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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