Re: [tw] Re: A few questions about macros/widgets/functions

2018-03-14 Thread Matthew Lauber
If your really looking to understand how the code works, my advice is to look at the sources tab in chrome's developer tools. Press F12 in your browser window, and look at the sources tab, and you should find a bunch of .js files under the no-domain entry in the left hand side. The standard

Re: [tw] Re: A few questions about macros/widgets/functions

2018-03-13 Thread 'Mark S.' via TiddlyWiki
Just go to the shadow tab of the advanced search. Look for the name of the widget minus the "widget" term. Like button.js I'm guessing that the TextWidget would be simplest because it does the least. There's some documentation how-to on plugins at http://cjhunt.github.io/ though for me I

[tw] Re: A few questions about macros/widgets/functions

2018-03-13 Thread Jed Carty
I am not sure if it is the simplest widget, but the text widget is one of the simplest widgets. It is part of every wiki but here is a link to it on tiddlywiki.com https://tiddlywiki.com/#%24%3A%2Fcore%2Fmodules%2Fwidgets%2Ftext.js -- You received this message because you are subscribed to

Re: [tw] Re: A few questions about macros/widgets/functions

2018-03-13 Thread Joe Armstrong
Next question is where is the code for a widget? I think I understand (famous last words) macros - but not widgets. Where is the code for a simple widget? Which is the simplest widget??? Cheers /Joe On Tue, Mar 13, 2018 at 10:16 AM, Steven Schneider wrote: > Great

[tw] Re: A few questions about macros/widgets/functions

2018-03-13 Thread Steven Schneider
Great thread. Thanks, Joe. And thanks, Xavier. What I find most interesting about TiddlyWiki is that someone like Joe and someone like me can work with it. Joe has a clearly different approach to learning and understanding than I do. I never looked at the <> code, just used it for a while

[tw] Re: A few questions about macros/widgets/functions

2018-03-10 Thread PMario
On Saturday, March 10, 2018 at 7:25:48 PM UTC+1, Joe Armstrong wrote: > > ... > > 2) widgets - what do they return? how are they evaluated? > Widgets are the basic building blocks in TW. The whole UI is based on widgets. The TiddlyWiki UI starts with a transclusion of the PageTemplate tiddler.

[tw] Re: A few questions about macros/widgets/functions

2018-03-10 Thread 'Mark S.' via TiddlyWiki
Macros are more like macros in make scripts. They don't really do anything, but they can concatenate variables or passed values into strings. Variables with <> are actually macro expansions. You can use macros to feed into widgets like <$mywidget text=<>/> Widgets render something right