Skip to content

Instantly share code, notes, and snippets.

@Arlen22
Last active August 29, 2015 14:13
Show Gist options
  • Save Arlen22/d7ad0b6a108fa3cedf72 to your computer and use it in GitHub Desktop.
Save Arlen22/d7ad0b6a108fa3cedf72 to your computer and use it in GitHub Desktop.
How to use node-webkit with tiddlywiki GitHub code.
<!doctype html>
<html>
<head></head>
<body class="tc-body">
<script>process.mainModule.exports.boot();</script>
</body>
</html>
exports.boot = function() {
console.log('booted');
console.log(window);
global.$tw = require("./boot/bootprefix.js").bootprefix();
$tw.boot.suppressBoot = true ;
$tw.boot.argv = ['./editions/server'];
$tw = require("./boot/boot.js").TiddlyWiki($tw);
$tw.boot.boot();
};
{
"node-main": "./nodewebkit.js",
"main":"./index.htm",
...
@Arlen22
Copy link
Author

Arlen22 commented Jan 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment