Hi Stefan,
sorry i have some other things going on at the moment (to much things to little time…
)
i had a short look at your github repositiory & the demo.
for the demo - i think its possible to directly use [github as hoster (github-pages)][1] and just make a index.html with an one-line info thats 'work-in-progress- and a inline frame that loads the files from master - so the demo would show the current development state…
i think for performance reasons it would make sense to load all svg-file-content into one svg-element in different groups (every layer is one group)
and optional tag the groups with the inkscape layer mode - so if you resave the generated file you can use it in inkscape for documentation or things like this…
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Layer Name"
style="display:none">
....
</g>
for saving text as file i had searched and copied together this snippet some time ago:
function saveAsFile(link, content, filename) {
// based on http://stackoverflow.com/a/16330385/574981
var blob = new Blob([content], {type: "text/text"});
var url = URL.createObjectURL(blob);
var a = link;
a.download = filename + ".txt";
a.href = url;
}
[also as jsfiddle][2]
eventually that can help as stating point… (tested only in firefox37+)
so that are just some ideas - i will follow this - but have currently no time to do some development myself…
sunny greetings
stefan
[1]: https://help.github.com/articles/what-are-github-pages/
[2]: http://jsfiddle.net/s_light/5psuqfma/