class RablTemplate

Public Instance Methods

evaluate(context_scope, locals, &block) click to toggle source
# File lib/rabl/template.rb, line 13
def evaluate(context_scope, locals, &block)
  options = @options.merge(:source_location => file)
  ::Rabl::Engine.new(data, options).apply(context_scope, locals, &block).render
end
initialize_engine() click to toggle source
# File lib/rabl/template.rb, line 4
def initialize_engine
  return if defined?(::Rabl)
  require_template_library 'rabl'
end
prepare() click to toggle source
# File lib/rabl/template.rb, line 9
def prepare
  #left empty so each invocation has a new hash of options and new rabl engine for thread safety
end