summaryrefslogtreecommitdiff
path: root/lib/routes.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/routes.ml')
-rw-r--r--lib/routes.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/routes.ml b/lib/routes.ml
index 0778c18..c136152 100644
--- a/lib/routes.ml
+++ b/lib/routes.ml
@@ -12,7 +12,7 @@ type t =
| Blob of string * string * string
let%path root_path = "/"
-let%path repo_path = "/%s"
+let%path repo_path = "/%s/"
let%path tag_path = "/%s/refs/%s"
let%path commit_path = "/%s/commit/%s"
let%path tree_path = "/%s/tree/%s/%s"
@@ -26,5 +26,4 @@ let path_attr = function
| Tree (repo, commit, path) -> path_attr href tree_path repo commit path
| Blob (repo, commit, path) -> path_attr href blob_path repo commit path
-let link_to label route = a [ path_attr route ] [ txt "%s" label ]
-let li_of_repo repo = li [] [ link_to repo (Repo repo) ]
+let link_to route content = a [ path_attr route ] [ content ]
Copyright 2019--2025 Marius PETER