A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Go to file
Jeremy Ruston b45c3249df Added ginsu.js for splitting TiddlyWiki files into separate tiddlers 2011-11-25 19:20:35 +00:00
js Added ginsu.js for splitting TiddlyWiki files into separate tiddlers 2011-11-25 19:20:35 +00:00
test/data Included the test tiddlers from tiddlywiki.com 2011-11-22 16:10:32 +00:00
.gitignore Introduced tmp/ directory for test artefacts 2011-11-25 15:51:02 +00:00
cook.js Initial commit 2011-11-22 14:29:29 +00:00
ginsu.js Added ginsu.js for splitting TiddlyWiki files into separate tiddlers 2011-11-25 19:20:35 +00:00
readme.md Initial commit 2011-11-22 14:29:29 +00:00
server.js Initial commit 2011-11-22 14:29:29 +00:00
test.sh Added ginsu.js for splitting TiddlyWiki files into separate tiddlers 2011-11-25 19:20:35 +00:00

readme.md

cook.js

This is an attempt to modernise TiddlyWiki's build system, which is based on tools written in Ruby called Cook and Ginsu (see https://github.com/TiddlyWiki/cooker for details). This new version is written in JavaScript for node.js, with the intention that it can share code with TiddlyWiki itself.

Usage

node cook.js <recipefile>

Cooks a recipe file and sends the output to STDOUT

node server.js <recipefile>

Cooks a recipe file and serves it over HTTP port 8000

Testing

test.sh contains a simple test that cooks the main tiddlywiki.com recipe, first with the old Ruby-based tool, and then the new one. It uses OS X's opendiff to display the differences between the two files.

Current status

As of 22nd November 2011, cook.js can now build a fully functional TiddlyWiki from the existing recipe files. There are still some minor differences in the layout of tiddler attributes, and some whitespace issues that prevent full byte-for-byte compatibility.