I've decided to make the TWC "theme" for TW5, but I need a bit of advice and help with Javascript
If I'm understanding what a plugin is, it is a tiddler whose content is Javascript code, which (when activated as a plugin) tells the TiddlyWiki to create the tiddlers described by the javascript code, and to also execute any additional code of the plugin.
Now, I know both HTML and CSS decently well enough, but I don't know
JavaScript very well at all. When I look at the Tiddler content of
$:/themes/tiddlywiki/vanilla, it looks like there is a bunch of
javascript making commands to 1) declare the titles of
the tiddlers to be created, along with 2) tags, fields, etc, and 3) the text content in the tiddler's text field.
That's where I get tripped up, trying to analyze it myself: none of the CSS and HTML in that tiddler are written in CSS, or HTML, or tiddlywiki markup language, each of which I know reasonably well; but rather, they are are mixed in or written with javascript language and syntax, which I do not know reasonably well. I compare the context of the tiddler $:/themes/tiddlywiki/vanilla/base, with the corresponding "text" portion of $:/themes/tiddlywiki/vanilla/ for that tiddler, and I just can't figure out what's making the output so different.
So, If someone could help me, I suppose, bridge that knowledge gap, I
would be very grateful. (or even make a more user friendly interface to edit all of it! perhaps with a plugin?)
I know (Or will soon be figuring out) all the tiddlers, HTML elements and CSS rules I want to
make, as well as the tiddlywiki markup, but I don't know how to say them in JavaScript like they are in the theme plugins. There also appear to be some somewhat complicated tiddlywiki list and macro rules, but if I can distinguish those from the javascript, I should be able to figure those out well enough.
Thanks in advance!
Leo