Re: [twdev] Export encrypted wiki from node.js

2019-01-13 Thread Alex V
> > What errors do you get? That should work; > $:/core/modules/commands/build.js:27 var buildTargets = $tw.boot.wikiInfo.build; ^ TypeError: Cannot read property 'build' of null at Command.execute ($:/core/modules/commands/build.js:27:39

Re: [twdev] Export encrypted wiki from node.js

2019-01-13 Thread Jeremy Ruston
Hi Alex > I also tried "tiddlywiki MyWiki --password --build index", but that > leads to tons of errors. What errors do you get? That should work; you can see how the core "encrypted.html" is built here: https://github.com/Jermolene/TiddlyWiki5/blob/master/bin/build-site.sh#L143-L148 Bes

[twdev] Export encrypted wiki from node.js

2019-01-13 Thread Alex V
How do I export the whole wiki from a running node.js instance, but as an encrypted single html file? I've tried "tiddlywiki MyWiki --build index --password ", but that just gives me an unencrypted file (just like using the save function on the wiki). I also tried "tiddlywiki MyWiki --pas

[twdev] Re: Where is the source code that implements the "tm-new-tiddler" message?

2019-01-13 Thread FrD
Hi Tony, If I read the code right, paramObject is expected to be a javascript object (once evaluated). So I guess you could use a JSON string representing a javascript object when you invoke the tm-new-tiddler message. Regards FrD Le dimanche 13 janvier 2019 05:23:15 UTC+1, TonyM a écrit : >