I have made a tiddler called [[Log1]] this is
supposed to be a log file.

I have a second tiddler [[AddToLog]] which is supposed to add a 
time-stamped entry to the end of the log.

It has a little text box to enter text with and a button

AddToLog is like this:


    \define appendButton(old,add) 
       <$button set="Log1" setTo="$old$ <hr> At <<now>> <br> $add$"> add to 
log</$button> 
    \end 

     <$edit-text tiddler="$:/temp/Append"/> 
     <$macrocall $name="appendButton" old={{Log1}} add={{$:/temp/Append}}/>

If I run the code in this tiddler ut some text in the edit button and click
on 'add to log' the log gets appended with this:

   <hr> 
   At <<now>> <br> .. the text I entered ...

 Which is wrong since I want <<now>> to be now (ie something like 
2019-01-02 ...) and NOT <<now>>

I have tried many ways to program my way around this but they all fail.

So how can I get the value of <<now>> now?

I need to turn off the lazy evaluation.

Cheers 

/Joe


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d220b1b5-8189-4d4c-999b-c2874fa2df46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to