useAPI = Config::getInstance()->getApi()['useAPI'] === true; return true; } public function render(VenomRenderer $renderer): bool { //check for batch rendering... this is very important! echo 'batch...'; return $this->useAPI; } //return async to say the backend that this should exit after rendering public function getTemplate(): string { return 'async'; } }