function getViewTitle(): \Closure {
    return function($value, \Mustache_LambdaHelper $helper) {
      $view = \Yii::$app->view;
      if ($view && $view->canSetProperty('title')) $view->title = trim($helper->render($value));
    };
  }