package eliom
Advanced client/server Web and mobile framework
Install
Dune Dependency
Authors
Maintainers
Sources
11.1.1.tar.gz
md5=c8c67fe5fb8d3f44a3b17cc4a93a0e62
sha512=e58557a1b525efd011e0eb539b112b53e6c012ac3fb2153c251be030eda483dd3b19de625707cf5ffebd97fa6a7fabfb8a6aae8e8a61c79e0bd7ad2d289df9a9
doc/eliom.server/Eliom_parameter_base/index.html
Module Eliom_parameter_base
Source
Type of names in a form
empty type used when it is not possible to use the parameter in a form
Source
type (_, _) params_type_ =
| TProd : (('a, 'an) params_type_ * ('b, 'bn) params_type_) -> ('a * 'b, 'an * 'bn) params_type_
| TOption : (('a, 'an) params_type_ * bool) -> ('a option, 'an) params_type_
| TList : (string * ('a, 'an) params_type_) -> ('a list, 'an listnames) params_type_
| TSet : ('a, [ `One of 'an ] param_name) params_type_ -> ('a list, [ `Set of 'an ] param_name) params_type_
| TSum : (('a, 'an) params_type_ * ('b, 'bn) params_type_) -> (('a, 'b) binsum, 'an * 'bn) params_type_
| TAtom : (string * 'a atom) -> ('a, [ `One of 'a ] param_name) params_type_
| TCoord : string -> (coordinates, [ `One of coordinates ] param_name) params_type_
| TFile : string -> (Eliom_lib.file_info, [ `One of Eliom_lib.file_info ] param_name) params_type_
| TUserType : (string * 'a Eliom_common.To_and_of_shared.t) -> ('a, [ `One of 'a ] param_name) params_type_
| TTypeFilter : (('a, 'an) params_type_ * 'a filter) -> ('a, 'an) params_type_
| TESuffix : string -> (string list, [ `One of string list ] param_name) params_type_
| TESuffixs : string -> (string, [ `One of string ] param_name) params_type_
| TESuffixu : (string * 'a Eliom_common.To_and_of_shared.t) -> ('a, [ `One of 'a ] param_name) params_type_
| TSuffix : (bool * ('s, 'sn) params_type_) -> ('s, 'sn) params_type_
| TUnit : (unit, unit) params_type_
| TAny : ((string * string) list, unit) params_type_
| TConst : string -> (unit, [ `One of unit ] param_name) params_type_
| TNLParams : ('a, 'names) non_localized_params_ -> ('a, 'names) params_type_
| TJson : (string * 'a Deriving_Json.t option) -> ('a, [ `One of 'a ocaml ] param_name) params_type_
| TRaw_post_data : (raw, no_param_name) params_type_
Source
and ('a, 'names) non_localized_params_ = {
name : string;
persistent : bool;
get : 'a option Polytables.key;
post : 'a option Polytables.key;
param : ('a, 'names) params_type_;
}
Source
type ('a, +'suff, 'an) non_localized_params = ('a, 'an) non_localized_params_ constraint 'suff = [< suff ]
Source
val file :
string ->
(Eliom_lib.file_info, [ `One of Eliom_lib.file_info ] param_name)
params_type_
Source
val sum :
('a, 'b) params_type_ ->
('c, 'd) params_type_ ->
(('a, 'c) binsum, 'b * 'd) params_type_
Source
val set :
(string -> ('a, [ `One of 'b ] param_name) params_type_) ->
string ->
('a list, [ `Set of 'b ] param_name) params_type_
Source
val suffix_prod :
?redirect_if_not_suffix:bool ->
('s, [< `Endsuffix | `WithoutSuffix ], 'sn) params_type ->
('a, [ `WithoutSuffix ], 'an) params_type ->
('s * 'a, [ `WithSuffix ], 'sn * 'an) params_type
Source
val ocaml :
string ->
'a Deriving_Json.t ->
('a, [ `One of 'a ocaml ] param_name) params_type_
Source
val aux :
'a 'c. ('a, [< suff ], 'c) params_type ->
string list option ->
(string * Eliommod_parameters.field) list Eliom_lib.String.Table.t ->
'a ->
string ->
string ->
(string * Eliommod_parameters.field) list ->
string list option
* (string * Eliommod_parameters.field) list Eliom_lib.String.Table.t
* (string * Eliommod_parameters.field) list
Source
val construct_params_list_raw :
(string * Eliommod_parameters.field) list Eliom_lib.String.Table.t ->
('a, [< suff ], 'b) params_type ->
'a ->
string list option
* (string * Eliommod_parameters.field) list Eliom_lib.String.Table.t
* (string * Eliommod_parameters.field) list
Given a parameter type, get the two functions that converts from and to strings. You should only use this function on
- options ;
- basic types : int, int32, int64, float, string
- marshal
- unit
- string
- bool
Source
val walk_parameter_tree :
'a 'c. string ->
('a, [< suff ], 'c) params_type ->
'a to_and_of option
Walk the parameter tree to search for a parameter, given its name
Source
val construct_params_list :
(string * Eliommod_parameters.field) list Eliom_lib.String.Table.t ->
('a, [< suff ], 'b) params_type ->
'a ->
string list option * (string * Eliommod_parameters.field) list
Source
val construct_params :
(string * Eliommod_parameters.field) list Eliom_lib.String.Table.t ->
('a, [< suff ], 'b) params_type ->
'a ->
string list option * string
Source
val add_pref_params :
'a 'c. string ->
('a, [< suff ] as 'b, 'c) params_type ->
('a, 'b, 'c) params_type
Source
val nl_prod :
('a, [< suff ] as 'b, 'an) params_type ->
('s, [ `WithoutSuffix ], 'sn) non_localized_params ->
('a * 's, 'b, 'an * 'sn) params_type
Source
val remove_from_nlp :
'a 'c. 'b Eliom_lib.String.Table.t ->
('a, [< suff ], 'c) params_type ->
'b Eliom_lib.String.Table.t
Source
val list_of_nl_params_set :
(string * Eliommod_parameters.field) list Eliom_lib.String.Table.t ->
(string * Eliommod_parameters.field) list
Source
val string_of_nl_params_set :
(string * Eliommod_parameters.field) list Eliom_lib.String.Table.t ->
string
Source
val make_non_localized_parameters :
prefix:string ->
name:string ->
?persistent:bool ->
('a, [ `WithoutSuffix ], 'b) params_type ->
('a, [ `WithoutSuffix ], 'b) non_localized_params
Source
val wrap_param_type :
'a 'c. ('a, [< suff ] as 'b, 'c) params_type ->
('a, 'b, 'c) params_type
Source
val reconstruct_params_ :
('a, [< suff ], 'b) params_type ->
params' ->
files ->
bool ->
string list option ->
'a
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>