Hi Chris

It's not covered very clearly in the docs, but here's how to split a
TiddlyWiki file into separate *.tid files. It should work for both TW
classic and TW5 documents.

node ./tiddlywiki.js \
./editions/empty \
--verbose \
--load <path_to_tiddlywiki_html_file> \
--savetiddlers [!is[system]] $:/core/templates/tid-tiddler
<directory_path_for_saving_files> text/plain .tid \
|| exit 1

It's a bit clunky in that one has to explicitly load an empty wiki in order
to import the tiddlers. It also rather unhelpfully saves binary files as
base64 .tid files; I will add an [is[text]] and [is[binary]] filter for
that kind of thing.

Anyhow, thanks for the feedback, I will update the documentation,

Best wishes

Jeremy


On Thu, May 23, 2013 at 4:50 PM, Chris Nicoll <[email protected]> wrote:

> Hi everybody,
>
> As a longtime TW2 user, I'm now interested to get my head around TW5. I've
> managed to adapt bld.sh to generate a TW where I want it, with tiddlers
> I've typed into plain-text .tid files. So far, so good.
>
> Now I'm wondering whether there's a way to break the Tiddlywiki back down
> after editing in the browser, so that I can build it again, including the
> changes I made to the html file in the browser.
>
> Sorry if this is obvious or I've missed a topic or doc that covers this. I
> have searched. I do understand that I can import my tiddlers into a
> freshly-built empty.html; just curious as to whether there are other ways.
>
> Best wishes,
> Chris
>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to