Esc

writer_init

procedureextensionexperimentalsince 0.36.1Source
  • macOS: writer_init works on macOS
  • Linux: writer_init works on Linux
  • Windows: writer_init works on Windows
  • Wasm: writer_init is not available on Wasm

Initializes a writer. Dry runs retain paths and links, without retaining page bodies.

Signature

writer_init :: (out_dir: string, base_url: string, dry_run := false) -> Writer
Example
w := writer_init("unused", "/", true);
defer deinit(*w);
assert(w.dry_run);

See also