package ocsigen-start

Build not yet checked
  1. Overview
  2. Docs
Higher-level library for developing Web and mobile applications with users, registration, notifications, etc

Install

dune-project
 Dependency

Authors

Maintainers

Sources

9.0.0.tar.gz
md5=dfd00a648f0d5f64fcfc893427afc996
sha512=d7c77a9f9b617291ea8c49f4e77fcad8187c39e41d6cb2942ad1c8f45ba620ac261d25a3e75c1b2ce1fd429dad009abb45fab670542e722ab336dc681b99330a

doc/ocsigen-start.server/Os/Lib/index.html

Module Os.Lib

This module aims to provide common utilities functions.

module Email_or_phone : sig ... end

Parse strings that can be e-mails or phones.

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

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

val string_repeat : string -> int -> string
val string_filter : (char -> bool) -> string -> string
val 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.

val 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.

module Http : sig ... end

This module contains functions about HTTP request.