Hello guys, пятница, 14 июня 2013 г., 1:00:23 UTC+4 пользователь Eric Shulman написал: > > > I tried a straight transclusion (e.g. <tiddler ....>) and then I tried > > using a div like this: > > <div class='tiddler' macro='tiddler [[ReceiptStuffing]]'> > > Nothing seems to work. I'm sure its something easy. > > You are very close. Within template tiddlers (ViewTemplate, > EditTemplate, PageTemplate), the "[[...]]" syntax is used in a special > way: rather than being used to simply "quote" tiddler titles, the > brackets "include" content from other tiddlers. Before the template > is processed, all [[...]] occurences are *expanded in place* by > inserting the content from their referenced tiddlers. Then, after all > expansion is done, the assembled template definition is rendered. > This allows you to easily construct a variety of templates using bits > and pieces stored in other tiddlers. > > For your purposes, you simply need to avoid using [[...]] within the > macro parameters of the tiddler macro. Fortunately, you can use > either single-quotes or double-quotes instead, like this: > <div class='tiddler' macro='tiddler "ReceiptStuffing"'> > or > <div class='tiddler' macro="tiddler 'ReceiptStuffing'"> > > By the way, as far as I know, this won't refresh on update of the ReceiptStuffing. To get autorefresh,
<div class='tiddler' refresh='content' macro="tiddler 'ReceiptStuffing'"> should be used. Best regards, Yakov. > Note: in this specific example, you actually don't need *any* quotes > around the tiddler title, since it it does not contain any spaces: > <div class='tiddler' macro='tiddler ReceiptStuffing'> > > That should do it. > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios > > HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"... > http://www.TiddlyTools.com/#Donations > > Professional TiddlyWiki Consulting Services... > Analysis, Design, and Custom Solutions: > http://www.TiddlyTools.com/#Contact > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.