/**
  * Returns the absolute url to a page with an optional trailing slash.
  *
  * @param string $url
  * @param bool $trailing_slash
  * @return string
  */
 public static function url($url, $trailing_slash = true)
 {
     $url = URLHelper::stripBase($url);
     if ($trailing_slash) {
         $url = StringHelper::stripEnd($url, '/');
         $url .= '/';
     }
     return BASE_URL . $url;
 }
 /**
  * Returns the absolute url of the asset given by the path
  *
  * @param string $folder
  * @param string $path
  * @return string
  * @since 0.0.1
  */
 private static function getAssetFrom($folder, $path)
 {
     return ASSET_BASE_URL . $folder . '/' . URLHelper::stripBase($path);
 }