The main boot kernel for TiddlyWiki. This single file creates a barebones TW environment that is just sufficient to bootstrap the modules containing the main logic of the application.
The main boot kernel for TiddlyWiki. This single file creates a barebones TW environment that is just sufficient to bootstrap the modules containing the main logic of the application.
On the server this file is executed directly to boot TiddlyWiki. In the browser, this file is packed into a single HTML file.
On the server this file is executed directly to boot TiddlyWiki. In the browser, this file is packed into a single HTML file.
\*/
\*/
var _boot = (function($tw) {
var _boot = (function($tw) {
/*jslint node: true, browser: true */
/*jslint node: true, browser: true */
/*global modules: false, $tw: false */
/*global modules: false, $tw: false */
"use strict";
"use strict";
// Include bootprefix if we're not given module data
// Include bootprefix if we're not given module data
if(!$tw) {
if(!$tw) {
$tw = require("./bootprefix.js").bootprefix();
$tw = require("./bootprefix.js").bootprefix();
}
}
$tw.utils = $tw.utils || Object.create(null);
$tw.utils = $tw.utils || Object.create(null);
/////////////////////////// Standard node.js libraries
/////////////////////////// Standard node.js libraries