package liquid_syntax

  1. Overview
  2. Docs
val forloop : string
val increment : string
val cycle : string
val next : string
val skip : string
val style_tag : string
type currency =
  1. | Usd
  2. | Eur
  3. | Cad
  4. | Aud
  5. | Gbp
type currency_info = {
  1. symbol : string;
  2. abbr : string;
  3. name : string;
}
val currency_info_from_currency : currency -> currency_info
type error_handler = string -> unit
type error_policy =
  1. | Strict
  2. | Warn
  3. | Silent
  4. | Custom of error_handler
type log_policy =
  1. | Verbose
  2. | Minimal
  3. | Never
val log_policy_key : string
val preferred_currency_key : string
type t = {
  1. log_policy : log_policy;
  2. error_policy : error_policy;
  3. preferred_currency : currency;
  4. filters : Syntax.liquid_filter_lookup;
  5. context : Syntax.variable_context;
  6. template_directory : string;
  7. log_directory : string option;
  8. timezone : Liquid_syntax.Date.Timezone.t;
}
val default_filter_lookup : 'a -> 'b option
val default_custom_ctx : 'a Syntax.Ctx.t
val make : ?log_policy:log_policy -> ?log_directory:string -> ?error_policy:error_policy -> ?preferred_currency:currency -> ?filters:Syntax.liquid_filter_lookup -> ?context:Syntax.value Syntax.Ctx.t -> ?template_directory:string -> ?timezone:Liquid_syntax.Date.Timezone.t -> unit -> t
OCaml

Innovation. Community. Security.