package slipshow

  1. Overview
  2. Docs

Module PreviewerSource

Sourcetype previewer

A previewer is meant for "live previewing without flickering".

To create a previewer, you need to provide an HTML element that contains exactly:

  • Nothing

When you have a previewer, you can preview a source. For the moment, it has to be a source: you cannot pass it a compiled file.

Sourceval create_previewer : ?initial_stage:int -> ?callback:(int -> unit) -> Brr.El.t -> previewer
Sourceval preview : ?slipshow_js:Slipshow.Asset.t -> ?frontmatter:Slipshow.Frontmatter.resolved Slipshow.Frontmatter.t -> ?read_file:Slipshow.file_reader -> previewer -> string -> unit
Sourceval preview_compiled : previewer -> Slipshow.delayed -> unit
Sourceval ids : previewer -> string * string