Is it possible to covernt tiddlers in a HTML file to online version (on node.js )?

110 views
Skip to first unread message

Qiyong Li

unread,
Sep 21, 2015, 12:32:52 PM9/21/15
to TiddlyWiki
Hi ,

I am new to tiddlywiki. Before we managed to set up online server on node.js, my project loves using tiddlywiki so much , that hundres of tiddlers are stored in a single HTML file.

Now how to convert it to online version, vice versa?  Please advise.

Thanks.

Mat

unread,
Sep 21, 2015, 2:49:13 PM9/21/15
to TiddlyWiki
Hi Qiyong Li


Are you asking how to convert the single TW file into multiple separate tiddlers for a node.js TW version? (I don't know.)

To just have a single file TW online, you don't need node.js. And, vice versa, you can have a node.js TW off-line without problem, it doesn't have to be online.

<:-)

Eric Shulman

unread,
Sep 21, 2015, 3:16:57 PM9/21/15
to TiddlyWiki
On Monday, September 21, 2015 at 9:32:52 AM UTC-7, Qiyong Li wrote:
I am new to tiddlywiki. Before we managed to set up online server on node.js, my project loves using tiddlywiki so much , that hundres of tiddlers are stored in a single HTML file.
Now how to convert it to online version, vice versa?  Please advise.


You can easily *import* all the tiddlers from the single-file document.  Just open the online TW in your browser and then drag-and-drop the single-file TW onto it.  This will initiate the import process.  All the tiddlers in the dropped file will be listed.  Key system tiddlers and configuration settings will be automatically excluded so that you don't overwrite the existing copies in the online TW, but all the *content* tiddlers can be imported.

To save a single file version of your online TW, just use the "save changes" button from the sidebar (the circle with the tick mark in it).  This will generate a new single-file document from the currently loaded TW.

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

Eric Shulman

unread,
Sep 21, 2015, 3:19:24 PM9/21/15
to TiddlyWiki
On Monday, September 21, 2015 at 11:49:13 AM UTC-7, Mat wrote:
Are you asking how to convert the single TW file into multiple separate tiddlers for a node.js TW version? (I don't know.)
To just have a single file TW online, you don't need node.js. And, vice versa, you can have a node.js TW off-line without problem, it doesn't have to be online.

My understanding is that his group was using a single-file TW... but now they have set up node.js, and they want to get the tiddlers from the old single-file TW added into their shiny new node.js setup.

-e

Qiyong Li

unread,
Sep 21, 2015, 9:35:15 PM9/21/15
to TiddlyWiki
Hi Eric,

Your understanding is correct. Will try the drag & drop method.

Meanwhile, we also found "tiddlywiki --load " command helps. 

Thanks!

Jeremy Ruston

unread,
Sep 22, 2015, 7:05:39 AM9/22/15
to TiddlyWiki
Hi Qiyong

Meanwhile, we also found "tiddlywiki --load " command helps. 

Great, I was going to point you at that command. You may also be interested in the script ginsu.sh which contains the following:

node ./tiddlywiki.js \
./editions/empty \
--verbose \
--load $1 \
--output tmp \
--rendertiddlers [!is[system]] $:/core/templates/tid-tiddler ginsu text/plain .tid \
--rendertiddler $:/core/templates/split-recipe ginsu/split.recipe text/plain \
|| exit 1

It demonstrates how to use the rendertiddler(s) command to output the individual tiddlers.

Best wishes

Jeremy.

 

Thanks!

On Tuesday, 22 September 2015 03:19:24 UTC+8, Eric Shulman wrote:
On Monday, September 21, 2015 at 11:49:13 AM UTC-7, Mat wrote:
Are you asking how to convert the single TW file into multiple separate tiddlers for a node.js TW version? (I don't know.)
To just have a single file TW online, you don't need node.js. And, vice versa, you can have a node.js TW off-line without problem, it doesn't have to be online.

My understanding is that his group was using a single-file TW... but now they have set up node.js, and they want to get the tiddlers from the old single-file TW added into their shiny new node.js setup.

-e

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/be47f176-f6b6-41db-a98e-4470f2983e6e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Reply all
Reply to author
Forward
0 new messages