Class: Hyde::TemplateContext
- Inherits:
-
Object
- Object
- Hyde::TemplateContext
- Defined in:
- lib/hyde/template.rb
Overview
Context for template engines
Instance Method Summary collapse
- #binding ⇒ Binding
-
#initialize(parent, parent_template) ⇒ TemplateContext
constructor
A new instance of TemplateContext.
Methods included from DSL::TemplateMethods
Methods included from DSL::CommonMethods
Methods included from DSL::ProbeMethods
#escape_html, #file, #form, #form?, #header, #remove_header, #request, #status, #unescape_html
Methods included from DSL::ProbeConstructors
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
#binding ⇒ Binding
23 24 25 |
# File 'lib/hyde/template.rb', line 23 def binding Kernel.binding end |