> due to some discussions regarding the size of the core, I can't skip
> asking: why newJournal is still there? newTiddlers allows what it
> does, it's not frequently used (I mean added to a new tiddler),
> replacing
>
> <<newJournal "DD MMM YYYY" "journal">>
One difference:
When you click the "new journal" command link, the macro handler
retrieves the *current* date/time and uses it to auto-generate the new
tiddler's title, formatted using the specified date string parameter
("DD MM YYYY"). In contrast, any tiddler title specified in the "new
tiddler" macro is *statically* defined and pressing the command link
always uses that fixed-value title.
Note: Even if you use an evaluated parameter in <<newTiddler>> to
generate a date-formatted tiddler title, e.g.:
<<newTiddler title:{{new Date().formatString("DD MM YYYY")}}
tag:journal>>
it does not produce the same results as the <<newJournal>> auto-
generated title handling, because the eval param is computed when the
macro is first *rendered*, not when the command is *clicked* upon, so
the date/time used to compute the title will not be current.
-e
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.