Skip to content

Save & export

Clemens edited this page Aug 15, 2024 · 1 revision

Save and load

To save a webstrate to a zip-file including all Automerge binary documents (root, content, data, assets, cache) including their history:

webstrate.saveToZip()

To load a saved zip into a new webstrate:

webstrate.loadFromZip()

Import and export

To export a webstrate to a zip-file including its content as HTML, asset files, and data as JSON:

webstrate.exportToZip()

To import a webstrate stored a zip of its contents:

webstrate.importFromZip()

Note that the import and export methods are compatible with the original implementation of Webstrates.

Clone this wiki locally