Mohammad et all

A design pattern I use to simplify similar code is turning text references or 
transcludes into variables

\define sitetitle() {{$:/SiteTitle}}
\define sitesubtitle() {{$:/SiteSubtitle}}

These can be global variables as well

One advantage being variables can be reset with a local variable or field. 

<$set name=sitetitle value={{!!sitetitle-field}} emptyValue=<<sitetitle>> >

Note how the new value can be sourced anywhere and you can even reuse the 
variable name, which is a kind of override.

This method allows fields, tiddlers and text references to become variables, 
All that is missing is the ability to allow variables to become fields, 
tiddlers and text references without a trigger button. Since the view widget 
does not accept variable input we have a serious gap. I plan to make a 
workaround soon.

Regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a959478-b1e4-4dfe-ba37-8e9690750dad%40googlegroups.com.

Reply via email to