edittemplate: only generate a UUID on-demand