Module Rabl
In: lib/rabl.rb
lib/rabl/configuration.rb
lib/rabl/json_engine.rb
lib/rabl/helpers.rb
lib/rabl/version.rb
lib/rabl/builder.rb
lib/rabl/engine.rb
lib/rabl/renderer.rb
lib/rabl/partials.rb
lib/rabl/cache_engine.rb
lib/rabl/railtie.rb

Defines the default cache engine for RABL when caching is invoked for a template. You can define your own caching engines by creating an object that responds to fetch and setting the configuration option:

    config.cache_engine = AdvancedCacheEngine.new

Methods

Classes and Modules

Module Rabl::Helpers
Module Rabl::Partials
Class Rabl::Builder
Class Rabl::CacheEngine
Class Rabl::Configuration
Class Rabl::Engine
Class Rabl::JsonEngine
Class Rabl::Railtie
Class Rabl::Renderer

Constants

VERSION = "0.7.5"

Public Class methods

Returns the configuration options set for RABL Rabl.configuration.include_json_root => false

Yields a RABL configuration block Rabl.configure do |config|

 config.include_json_root     = false
 config.enable_json_callbacks = true

end

Initialize RABL within an application Rabl.register!

Renders an object using a specified template within an application. render(@post, ‘posts/show’, :view_path => "/path/to/app/views")

Resets the RABL configuration back to the defaults.

Resets the RABL source cache

Fetches from the source_cache, stores block result in cache if nil Used to cache the contents and paths to various rabl templates source_cache("users/index", "path/to/view") { "/full/path/to/template/users/index" }

[Validate]