class Templet::Component::Template

Used for ERb support

Public Class Methods

new(renderer, template=nil, **locals) click to toggle source
template

Given as string or file or at __END__

locals

Objects you can reference by the name given as the key

# File lib/templet/component/template.rb, line 8
def initialize(renderer, template=nil, **locals)
  self.proto_template = template

  self.context = renderer.new_instance(self, **locals)
end