Class: Nitro::Template

Inherits:
Object
  • Object
show all
Extended by:
TemplateMixin
Includes:
TemplateMixin
Defined in:
lib/nitro/template.rb

Overview

A helper class that provides access to the Template methods as singleton methods.

Constant Summary

Constants included from TemplateMixin

Nitro::TemplateMixin::DELIM_HSH, Nitro::TemplateMixin::END_DELIM, Nitro::TemplateMixin::START_DELIM

Instance Method Summary collapse

Methods included from TemplateMixin

compile_template, evaluate_template, process_template

Instance Method Details

#render(template) ⇒ Object

Helper.



176
177
178
179
180
# File 'lib/nitro/template.rb', line 176

def render(template)
  str = ''
  process_template(template, 'str', binding)
  return str
end