W3cubDocs

/Padrino

Module: Padrino::Rendering

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, SafeBufferEnhancer, SafeTemplate Classes: ERBTemplate, ErubisTemplate, HamlTemplate, SafeERB, SafeEruby, SlimTemplate, TemplateNotFound

Constant Summary

IGNORE_FILE_PATTERN =
[
  /~$/ # This is for Gedit
]
CONTENT_TYPE_ALIASES =

Defines common content-type alias mappings.

{ :htm => :html }
DEFAULT_RENDERING_OPTIONS =
{ :strict_format => false, :raise_exceptions => true }

Class Method Summary

Class Method Details

.engine_configurations ⇒ Hash<Symbol,Hash>

Default engine configurations for Padrino::Rendering.

Returns:

  • (Hash<Symbol,Hash>) — The configurations, keyed by engine.

.registered(app) ⇒ Object

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Rendering