Padrino 是一个基于Sinatra的Web框架
安装方法:
gem install padrino padrino g project myapp -d datamapper -b cd myapp padrino g admin padrino rake dm:migrate seed padrino start
示例代码:
# app/app.rb class SampleBlog < Padrino::Application register Padrino::Rendering register Padrino::Helpers # Add these routes below to the app file... get "/" do "Hello World!" end get :about, :map => '/about_us' do render :haml, "%p This is a sample blog created to demonstrate how Padrino works!" end end