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
VERSION | = | "0.7.5" |
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
Renders an object using a specified template within an application. render(@post, ‘posts/show’, :view_path => "/path/to/app/views")
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" }