[TW5] Node.js Is it possible to run --rendertiddlers from button in tiddlywiki?

47 views
Skip to first unread message

sini-Kit

unread,
Mar 28, 2016, 12:20:02 PM3/28/16
to TiddlyWiki
Hi! Now if I want to modify something in tw5 site
1. Open my wiki file, modify tiddler I want, press save.
2. to make static html river files I run my .bat file with node.js commands

tiddlywiki --verbose  --load heeg.html --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain --rendertiddler $:/_sitemap static/sitemap.xml text/vnd.tiddlywiki  --rendertiddler $:/theeg.template.css  static/static.css text/vnd.tiddlywiki --rendertiddler $:/boot/Yandex_Metrika_Counter.js    static/Yandex_Metrika_Counter.js text/plain --rendertiddler $:/_heeg.js   static/heeg.js text/plain  && ^
xcopy images output
\static\images /s /e /C /Y /d /i && ^
copy heeg
.html output\static\ && ^
copy
.htaccess output\static\ && ^
copy favicon
.ico output\static\


so, I get static folder with all my project.
3.then I open my ftp (filezilla) and copy all files from static folder to root of my site.

I think this way is very long if we use Tiddlywiki as CMS for static blog or shop.  It will be better to have two buttons on our wiki page: save wiki (we save our wiki local) and publish wiki (we make static river and copy to site by ftp using node.js)
i found that node.js can work with ftp https://github.com/mscdex/node-ftp but how can I run node.js command local --rendertiddlers from my browser by clicking button?
Reply all
Reply to author
Forward
0 new messages