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 <<syntax>> are actually macro expansions. You can
use macros to feed into widgets like
Widgets render something right there in place, typically. I don't think you
can say that they return anything. If you want to evaluate their "return"
(what you see on screen) you may have to use the Wikify widget to render
their result into a variable.
There are JS macros, which can do more than regular macros. Most of the
core macros appear to be regular, non-js, macros.
If you type list-links into the advanced search engine and click on the
Shadows tab, you'll see
Clicking on the one with "macros" in the title will take you to the tiddler
with the list-links definition. This is pretty much how I find stuff when
I'm rummaging around.
On Saturday, March 10, 2018 at 10:25:48 AM UTC-8, Joe Armstrong wrote:
> TW seems to have three types of code: JS functions, TW macros, and TW
> widgets. It's not clear to me how these are evaluated,
> nor what the order of evaluation is.
> 1) macros - what are they? How do they differ from regular JS functions -
> how are they evaluated?
> what do they return? Is the return text re-evaluated?
> 2) widgets - what do they return? how are they evaluated?
> 3) How can I find a macro-definition ?
> I looked for ages for the source of the list-links macro but could not
> find it
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.