code: public function renderString($tplString='', $tplData=[])
      {
          try {
              return $this->twig->createTemplate($tplString)->render($tplData);
          }
          catch (Twig_Error $err) {
              return $this->error($err, false, $tplString);
          }
      }
docs: Render a Twig template from a string
  @param  string $tplString
  @param  array $tplData
  @return string
  @throws Twig_Error
  @throws \Exception
  @throws \Throwable