Hello!
Unfortunately, there is no easy way to do so currently. The listing of available version is listed dynamically by the serve
subcommand, limiting what's possible to do statically. Right now, the only workaround I can think of is:
- When you create a new mapshot version of a save, rename each time the index.html
to something with a different name (e.g., save-v3.html
).
- Allow Apache to list the files in that directory.
This way, it will be possible to see which saves are available in the directory and load them.
Note that the content of index.html
is relatively simple. The only difference between each version is the path
string (e.g., MAPSHOT_CONFIG={"path":"d-12592d50"}
), so the viewer for other versions than the latest can easily be recreated manually.
I've opened https://github.com/Palats/mapshot/issues/17 to add better support for listing versions when using just the static files. (Note: I don't have time to work on it for now though).