# File lib/cgikit/template_store.rb, line 66
  def checkout( component )
    template = restore(component)
    if template.nil? or (cache? and terminate?(template, component)) then
      template = create_template(component)
      isnew = true
      checkin(template) if cache?
    end
    template.component = component
    template.template_store = self
    template.template_node.component = component
    template
  end