Hi John The reason that macros are not wikified when used as an element/widget attribute is primarily performance: parsing and rendering the macro text is a pretty expensive operation. Very often the variable substitution performed by macros is sufficient, and it's much, much faster.
The way to think about what's going on is that: * invoking a macro always performs the parameter and variable substitution to generate the output text * whether it is wikified depends on the context: ordinary body text is wikified, but attribute values are not. That's consistent; an attribute like attr="my [[wiki|Wiki]]" is not wikified either The trick that Stephan suggested is widely used in the core and helps with a lot of cases. But I'm conscious that we're going to need further wikitext syntax to cover all the bases. Best wishes Jeremy On Thu, May 15, 2014 at 7:20 AM, Stephan Hradek <[email protected]>wrote: > Try to change it like so: > \define background() background-image:url('$(bgimg_var)$'); > > <$set name="bgimg_var" value={{!!bgimage}}> > > <div style=<<background>>> > … > </div> > > </$set> > > > > -- > 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 http://groups.google.com/group/tiddlywiki. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

