Single file export and import
What if the JSON file was put inside the ZIP file and every template is always a ZIP containing the JSON + any files. This way we should never have to worry about having one file but not the other + related error handling code + would be easier to pass around the templates as they are always just one field.
Edited by Bram Wiepjes