From 2126ce1d1743f7bbe4c94c23ef1c71719ab116cf Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 14 Dec 2013 09:46:10 +0000 Subject: [PATCH] Docs update --- .../tw5.com/tiddlers/mechanisms/BootMechanism.tid | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/editions/tw5.com/tiddlers/mechanisms/BootMechanism.tid b/editions/tw5.com/tiddlers/mechanisms/BootMechanism.tid index 7301d0ab0..e6a0bab3d 100644 --- a/editions/tw5.com/tiddlers/mechanisms/BootMechanism.tid +++ b/editions/tw5.com/tiddlers/mechanisms/BootMechanism.tid @@ -1,7 +1,8 @@ -created: 201308251429 -modified: 201310312218 +created: 20130825142900000 +modified: 20131214093453953 tags: mechanism title: BootMechanism +type: text/vnd.tiddlywiki !Introduction @@ -26,15 +27,15 @@ The boot kernel includes: * Code for the browser to load tiddlers from the HTML DOM * Code for the server to load tiddlers from the file system -Each module is an ordinary `Node.js`-style module, using the `require()` function to access other modules and the `exports` global to return JavaScript values. The boot kernel smooths over the differences between `Node.js` and the browser, allowing the same plugin modules to execute in both environments. +Each module is an ordinary CommonJS module, using the `require()` function to access other modules and the `exports` global to return JavaScript values. The boot kernel smooths over the differences between `Node.js` and the browser, allowing the same plugin modules to execute in both environments. In the browser, `core/boot.js` is packed into a template HTML file that contains the following elements in order: * Ordinary and system tiddlers, packed as HTML `
` elements * `core/bootprefix.js`, containing a few lines to set up the plugin environment -* JavaScript modules, packed as HTML `