>
> how can I construct a variable, that once set in the primary tiddler will 
> retain its value in all subsequently transcluded tiddlers,
>

In TW variables have a scope. ... That means they are only valid inside 
there scope. 

Simple test: If you copy paste the following snippet into an empty tiddler 

<<var-test>>
<$set name="var-test" value="asdf">
  <<var-test>>
</$set>
<<var-test>>

Transclusions, that want to work with variables set in a tiddler, have to 
be called inside the "scope" of the corresponding widget. See the 
"set-widget" example form above. 

outer: 

<$set name="var-test" value="asdf">
  <$transclude tiddler="inner"/>
</$set>

inner: 

<<var-test>>


The same mechanisms are used by the core templates. ... They are just a bit 
more "advanced" ;)


part 2 ... one more to follow

have fun!
mario 

-- 
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/febc355e-0f4c-4a09-bb0c-55a7bb28301d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to