package sihl
Source file http_utils.ml
1 2 3 4 5 6 7 8 9 10 11 12 13let externalize ?prefix path = let prefix = match prefix, Core.Configuration.read_string "PREFIX_PATH" with | Some prefix, _ -> prefix | _, Some prefix -> prefix | _ -> "" in path |> String.split_on_char '/' |> List.cons prefix |> String.concat "/" |> Stringext.replace_all ~pattern:"//" ~with_:"/" ;;