aboutsummaryrefslogtreecommitdiff
path: root/lib/virtuals/v_string/v_string.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/virtuals/v_string/v_string.mli')
-rw-r--r--lib/virtuals/v_string/v_string.mli14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/virtuals/v_string/v_string.mli b/lib/virtuals/v_string/v_string.mli
new file mode 100644
index 0000000..267dbf2
--- /dev/null
+++ b/lib/virtuals/v_string/v_string.mli
@@ -0,0 +1,14 @@
+type t
+(**
+ This module provide a common signature between the server and javascript
+ side in order to create URL in the same way.
+*)
+
+val v : string -> t
+val s : t -> string
+val concat : ?sep:t -> t list -> t
+
+val encode : t -> t
+(** Encode an element of the url by percent-encoding. The function is
+ expected to encode "/" as well.
+ *)