/** * Returns a function returning the base URL of the current request. * @return \Closure A function returning the base URL of the current request. */ public function getBase() : \Closure { return function ($value, \Mustache_LambdaHelper $helper) { return UrlHelper::base($helper->render($value) ?: false); }; }