package jingoo

  1. Overview
  2. Docs
val spf : ('a, unit, string) format -> 'a
val ($) : ('a -> 'b) -> ('c -> 'a) -> 'c -> 'b
module UTF8 : sig ... end
val strlen : string -> int
val strcmp : String.t -> String.t -> int
val substring : int -> int -> string -> string

application friendly substring

val escape_html_char : char -> string option

escape_html_char char returns escaped string option

val escape_html : string -> string

escape_html str replaces '&', '"', '\'', '<' and '>' with their corresponding character reference

val encode_url : string -> string

Note that '/' is not quoted. https://jinja.palletsprojects.com/en/3.1.x/templates/#jinja-filters.urlencode

val chomp : string -> string
val take : ?pad:'a -> int -> 'a list -> 'a list
val after : int -> 'a list -> 'a list
val get_parser_error : exn -> Lexing.lexbuf -> string
val read_file_as_string : string -> string
val get_file_path : ?template_dirs:string list -> string -> string
module Maybe : sig ... end
val array_find : ('a -> bool) -> 'a array -> 'a
OCaml

Innovation. Community. Security.