Module: Padrino::Rendering

### Home Classes Methods

### In Files

- lib/padrino/rendering.rb
- lib/padrino/rendering/erubis_template.rb
- lib/padrino/rendering/haml_template.rb
- lib/padrino/rendering/slim_template.rb

### Namespace

- MODULE Padrino::Rendering::ClassMethods
- MODULE Padrino::Rendering::InstanceMethods
- MODULE Padrino::Rendering::SafeBufferEnhancer
- MODULE Padrino::Rendering::SafeTemplate
- CLASS Padrino::Rendering::ErubisTemplate
- CLASS Padrino::Rendering::HamlTemplate
- CLASS Padrino::Rendering::SafeEruby
- CLASS Padrino::Rendering::SlimTemplate
- CLASS Padrino::Rendering::TemplateNotFound

### Methods

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

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Padrino
- Padrino::Helpers
- Padrino::Helpers::AssetTagHelpers
- Padrino::Helpers::FormBuilder
- Padrino::Helpers::FormBuilder::AbstractFormBuilder
- Padrino::Helpers::FormBuilder::DeprecatedBuilderMethods
- Padrino::Helpers::FormBuilder::StandardFormBuilder
- Padrino::Helpers::FormHelpers
- Padrino::Helpers::FormHelpers::Errors
- Padrino::Helpers::FormHelpers::Options
- Padrino::Helpers::FormHelpers::Security
- Padrino::Helpers::NumberHelpers
- Padrino::Helpers::OutputHelpers
- Padrino::Helpers::OutputHelpers::AbstractHandler
- Padrino::Helpers::OutputHelpers::ErbHandler
- Padrino::Helpers::OutputHelpers::HamlHandler
- Padrino::Helpers::OutputHelpers::SinatraCurrentEngine
- Padrino::Helpers::OutputHelpers::SlimHandler
- Padrino::Helpers::RenderHelpers
- Padrino::Helpers::TagHelpers
- Padrino::Helpers::TranslationHelpers
- Padrino::Rendering
- Padrino::Rendering::ClassMethods
- Padrino::Rendering::ErubisTemplate
- Padrino::Rendering::HamlTemplate
- Padrino::Rendering::InstanceMethods
- Padrino::Rendering::SafeBufferEnhancer
- Padrino::Rendering::SafeEruby
- Padrino::Rendering::SafeTemplate
- Padrino::Rendering::SlimTemplate
- Padrino::Rendering::TemplateNotFound
- Haml
- Haml::Helpers
- Haml::Util

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/rendering.rb, line 48
    def engine_configurations
      @engine_configurations ||= {}
    end

included(base) click to toggle source

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

registered(app) click to toggle source

    # File lib/padrino/rendering.rb, line 52
    def registered(app)
      if defined?(Padrino::Application) && app == Padrino::Application
        # this fail can be removed later when jRuby is not bugged and MRI19 is dropped
        fail 'Please, do not use `register` on Padrino::Application object, use `.dup` or subclassing'
      end
      included(app)
      engine_configurations.each do |engine, configs|
        app.set engine, configs
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.