Class: Hyde::TemplateContext

Inherits:
Object
  • Object
show all
Includes:
DSL::CommonMethods, DSL::ProbeConstructors, DSL::ProbeMethods, DSL::TemplateMethods
Defined in:
lib/hyde/template.rb

Overview

Context for template engines

Instance Method Summary collapse

Methods included from DSL::TemplateMethods

#import

Methods included from DSL::CommonMethods

#bounce, #die

Methods included from DSL::ProbeMethods

#escape_html, #file, #form, #form?, #header, #remove_header, #request, #status, #unescape_html

Methods included from DSL::ProbeConstructors

#erb, #erubi

Constructor Details

#initialize(parent, parent_template) ⇒ TemplateContext

Returns a new instance of TemplateContext.



27
28
29
30
# File 'lib/hyde/template.rb', line 27

def initialize(parent, parent_template)
  @origin = parent
  @parent_template = parent_template
end

Instance Method Details

#bindingBinding

Returns:

  • (Binding)


23
24
25
# File 'lib/hyde/template.rb', line 23

def binding
  Kernel.binding
end