# File lib/cgikit/template_store.rb, line 108
  def load_template( component )
    klass = @application.htmlparser_class
    if string = component.will_parse_template then
      parser = klass.new
      parser.parse(string)
    elsif path = component.template_file then
      parser = klass.new(path)
    else
      raise "can't find a template file - #{component.class}"
    end
    parser
  end