public function load($source) { $dom = $this->createDom($source); return new Template($dom, $this->collectMetadata($dom, $source)); }