Module Os_libSource

include module type of struct include Os.Lib end
Sourceval reload : unit -> unit Lwt.t

reload () reloads the current page.

Sourcemodule Email_or_phone = Os.Lib.Email_or_phone

Parse strings that can be e-mails or phones.

Sourceval phone_regexp : Re.Str.regexp
Sourceval email_regexp : Re.Str.regexp
Sourceval memoizator : (unit -> 'a Lwt.t) -> unit -> 'a Lwt.t

memoizator f () caches the returned value of f ()

Sourceval string_repeat : string -> int -> string
Sourceval string_filter : (char -> bool) -> string -> string
Sourceval lwt_bound_input_enter : ?a:[< Html_types.input_attrib ] Eliom.Content.Html.attrib list -> ?button:[< `Button | `Input ] Eliom.Content.Html.elt -> ?validate:(string -> bool) Eliom.Client_value.t -> (string -> unit Lwt.t) Eliom.Client_value.t -> [> `Input ] Eliom.Content.Html.elt

lwt_bound_input_enter f produces an input element bound to f, i.e., when the user submits the input, we call f.

Sourceval lwt_bind_input_enter : ?validate:(string -> bool) Eliom.Client_value.t -> ?button:[< `Button | `Input ] Eliom.Content.Html.elt -> [ `Input ] Eliom.Content.Html.elt -> (string -> unit Lwt.t) Eliom.Client_value.t -> unit

lwt_bound_input_enter inp f calls f whenever the user submits the contents of inp.