Padrino::Rendering

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部