public function templateReplacer($parser) { $rpl = new SedaiReplacer($parser->getHaystack(), $this->getFormat()); $rpl->setClass($this->template); $rpl->setMethod($this->key); while (($cmd = $parser->getNext()) !== false) { $rpl->addReplace($cmd); } return $rpl; }
public function createViewer(SedaiReplacer $replacer) { $replacer->replace(); return $replacer->view(); }