Module: Padrino::Rendering

### Home Classes Methods

### In Files

- lib/padrino-core/application/rendering.rb

### Namespace

- MODULE Padrino::Rendering::ClassMethods
- MODULE Padrino::Rendering::InstanceMethods
- MODULE Padrino::Rendering::SafeTemplate
- CLASS Padrino::Rendering::TemplateNotFound

### Methods

- ::engine_configurations
- ::included
- ::registered

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Application
- Padrino::ApplicationLoadError
- Padrino::ApplicationSetupError
- Padrino::Cli
- Padrino::Cli::Adapter
- Padrino::Cli::Base
- Padrino::Erubis
- Padrino::Erubis::SafeBufferEnhancer
- Padrino::Erubis::SafeBufferTemplate
- Padrino::Erubis::Template
- Padrino::Filter
- Padrino::Flash
- Padrino::Flash::Helpers
- Padrino::Flash::Storage
- Padrino::Logger
- Padrino::Logger::Colorize
- Padrino::Logger::Extensions
- Padrino::Logger::Rack
- Padrino::Module
- Padrino::Mounter
- Padrino::Mounter::MounterException
- Padrino::Reloader
- Padrino::Reloader::Rack
- Padrino::Rendering
- Padrino::Rendering::ClassMethods
- Padrino::Rendering::InstanceMethods
- Padrino::Rendering::SafeTemplate
- Padrino::Rendering::TemplateNotFound
- Padrino::Router
- Padrino::Routing
- Padrino::Routing::ClassMethods
- Padrino::Routing::InstanceMethods
- Padrino::Routing::Parent
- Padrino::Routing::UnrecognizedException
- Padrino::Server
- Padrino::ShowExceptions
- Padrino::Tasks
- Padrino::Utils
- HttpRouter
- HttpRouter::Node
- HttpRouter::Node::Path
- HttpRouter::Request
- HttpRouter::Route
- Haml
- Haml::Helpers
- Haml::Util
- Sinatra
- Sinatra::Request
- Slim
- Slim::Template
- Tilt
- Tilt::HamlTemplate
- FileSet
- Kernel
- Module
- Object
- ObjectSpace
- PadrinoTasks
- String
- SupportLite

No matching classes.

# Padrino::Rendering

Padrino enhances the Sinatra 'render' method to have support for automatic template engine detection, enhanced layout functionality, locale enabled rendering, among other features.

### Constants

DEFAULT_RENDERING_OPTIONS

  Default options used in the resolve_template-method.

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:

  @example

      Padrino::Rendering::IGNORE_FILE_PATTERN << /~$/

### Public Class Methods

engine_configurations() click to toggle source

Default engine configurations for Padrino::Rendering

@return {Hash<Symbol,Hash>}

    The configurations, keyed by engine.

    # File lib/padrino-core/application/rendering.rb, line 48
    def engine_configurations
      @engine_configurations ||= {}
    end

included(base) click to toggle source

    # File lib/padrino-core/application/rendering.rb, line 62
    def included(base)
      base.send(:include, InstanceMethods)
      base.extend(ClassMethods)
    end

registered(app) click to toggle source

Main class that register this extension.

    # File lib/padrino-core/application/rendering.rb, line 55
    def registered(app)
      included(app)
      engine_configurations.each do |engine, configs|
        app.set engine, configs
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.