Module: Padrino::Rendering
- Defined in:
- padrino-core/lib/padrino-core/application/rendering.rb
Overview
Padrino enhances the Sinatra ‘render’ method to have support for automatic template engine detection, enhanced layout functionality, locale enabled rendering, among other features.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods Classes: TemplateNotFound
Constant Summary
- IGNORE_FILE_PATTERN =
This is an array of file patterns to ignore. If your editor add a suffix during editing to your files please add it like:
[ /~$/ # This is for Gedit ] unless defined?(IGNORE_FILE_PATTERN)
- DEFAULT_RENDERING_OPTIONS =
Default rendering options used in the #render-method.
{ :strict_format => false, :raise_exceptions => true } unless defined?(DEFAULT_RENDERING_OPTIONS)
Class Method Summary (collapse)
-
+ (Object) registered(app)
(also: included)
Main class that register this extension.
Class Method Details
+ (Object) registered(app) Also known as: included
Main class that register this extension.
36 37 38 39 |
# File 'padrino-core/lib/padrino-core/application/rendering.rb', line 36 def registered(app) app.send(:include, InstanceMethods) app.extend(ClassMethods) end |