It seems well documented that Twine is based on TiddlyWiki under the hood. From what I understand, Twine is merely the GUI editor for the Twee compiler. So, somehow Twee is powered by TiddlyWiki.
I notice this comment in tiddlywiki.py:
I’m not a programmer. I know this would probably be immediately if I were, so I apologize for asking stupid questions. I’m a code-literate designer, and I’m working with TiddlyWiki in class. I might want to work with Twine in some way if I can get away with it, or else find out what is involved in making a new TiddlyWiki front-end from scratch.
I don’t know twine, the “front-end”, but I’m using twee with source code (in ascii text), and as said, twee is a compiler which is parsing this kind of code:
Start the game: []
Viewing the source of some Twine games in the browser (not the twee source), I can see that there are some differences in how the HTML tags for tiddlers are formatted in Twine games compared to standard Tiddlywikis.
This appears to be a tiddler definition from “Twine Starter” by Bharat Khiani:
<div tiddler="Eat potatoes" tags="" created="201411241721" modifier="twee" twine-position="1363,571">you eat boiled potatoes with salt and pepper\n\n[[<< Back|previous()]]</div>
And here is a tiddler from the HTML source from the Tiddlywiki I made out of the text of the novel Phantastes:
"Ev'n the Styx, which ninefold her infoldeth
<html> </html>Hems not Ceres' daughter in its flow;
But she grasps the apple—ever holdeth
<html> </html>Her, sad Orcus, down below."
-- Schiller, //Das Ideal und das Leben//
Notably, the Twine HTML uses an attribute called “tiddler” instead of “title” and does not insert the actual displayed text between “pre” tags.
I’m still confused about how the UI is implemented. Based on the comments in the HTML of Twine games, I’m thinking that Sugarcane is the specific version/implementation of TiddlyWiki used for the Twine/Twee interface.