Padrino is a ruby framework built upon the excellent Sinatra Microframework. Sinatra is a DSL for quickly creating simple web applications in Ruby. Padrino was created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes Sinatra great!
Overview
Padrino is a Ruby framework built upon the excellent Sinatra microframework. This framework makes it as fun and easy as possible to code increasingly advanced web applications by expanding upon Sinatra while maintaining the spirit that made it great.
For more overview, please see the Wikipedia article.
Features
Here is a list of major functionality Padrino provides on top of Sinatra:
- Agnostic: Full support for many popular testing, templating, mocking, and database libraries.
- Generators: Create Padrino applications, models, controllers i.e: padrino g project.
- Mountable: Unlike other ruby frameworks, principally designed for mounting multiple apps.
- Routing: Full url named routes, named params, respond_to support, before/after filter support.
- Tag Helpers: View helpers such as: tag, content_tag, input_tag.
- Asset Helpers: View helpers such as: link_to, image_tag, javascript_include_tag.
- Form Helpers: Builder support such as: form_tag, form_for, field_set_tag, text_field.
- Text Helpers: Useful formatting like: relative_time_ago, js_escape_html, sanitize_html.
- Mailer: Fast and simple delivery support for sending emails (akin to ActionMailer).
- Admin: Builtin Admin interface (like Django).
- Logging: Provide a unified logger that can interact with your ORM or any library.
- Reloading: Automatically reloads server code during development.
- Localization: Full support of I18n.
Note that as a user of Padrino, each of the major components can be pulled in separately to an existing Sinatra application or they can be used altogether for a comprehensive upgrade to Sinatra (a full-stack Padrino application).
To read more about registering certain Padrino functionality into your Sinatra application, check out the Standalone Usage in Sinatra guide.