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, Erubi, InstanceMethods, SafeBufferEnhancer, SafeTemplate Classes: ERBTemplate, ErubiTemplate, ErubisTemplate, HamlTemplate, HamlitOutputBuffer, HamlitTemplate, SafeERB, SafeErubi, SafeEruby, SlimOutputBuffer, SlimTemplate, TemplateNotFound
Constant Summary collapse
- 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 ]
- CONTENT_TYPE_ALIASES =
Defines common content-type alias mappings.
{ :htm => :html }
- DEFAULT_RENDERING_OPTIONS =
Default options used in the resolve_template-method.
{ :strict_format => false, :raise_exceptions => true }
Class Method Summary
-
.engine_configurations ⇒ Hash<Symbol,Hash>
Default engine configurations for Padrino::Rendering. -
.registered(app) ⇒ Object
Class Method Details
.engine_configurations ⇒ Hash<Symbol,Hash>
Default engine configurations for Padrino::Rendering.
.registered(app) ⇒ Object
© 2010–2020 Padrino
Licensed under the MIT License.
https://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Rendering