Hi everyone,
I am trying to create a standalone TiddlyWiki file from the command line (via Node.js). From information I gathered from various sources, the way to do this seems to be “rendering” a special tiddler called $:/core/save/all
. Fine. Except that this doesn’t quite do what I’d expect.
A quick test:
tiddlywiki --load empty.html --render $:/core/save/all index.html
where empty.html
is a freshly download TiddlyWiki file. This command produces a file output/index.html
, but it contains the HTML code rendered as text inside a paragraph tag:
$ head output/index.html
<p>
<code><!doctype html>
</code><!-- The following comment is called a MOTW comment and is necessary for the TiddlyIE Internet Explorer extension -->
<!-- saved from url=(0021)https://tiddlywiki.com -->
<code><html lang="</code>en-GB<code>">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<!--~~ Raw markup for the top of the head section ~~-->
</code><code>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
Am I missing something obvious?