using tiddler slices and <<tiddler tiddlerName with:parameter>> bug

17 views
Skip to first unread message

jang

unread,
Jul 2, 2009, 4:08:02 PM7/2/09
to TiddlyWiki
The problem is the slice isn't found if created with a template for
example
the first tiddler:
name:
template
body:
data1:firstword
data2:secondword

the second tiddler:
name:
FirstDataTiddler
body:
<<tiddler template with:firstword secondword>>

the third tiddler:
name:
report
body:
<<tiddler [[FirstDataTiddler::data1]]>>
<<tiddler [[FirstDataTiddler::data2]]>>

The bug is parsing the tiddler looking for the slice, before expanding
the macro, I think.

FND

unread,
Jul 2, 2009, 5:19:28 PM7/2/09
to Tiddl...@googlegroups.com
> The problem is the slice isn't found if created with a template

I can confirm that transcluded slices are not recognized.
However, I'm not entirely sure whether this sort of recursive evaluation
should be supported.
So I wouldn't consider this a bug - it's more of a feature request
(which doesn't make it irrelevant, so thanks for reporting this).

Could you raise a ticket:
http://trac.tiddlywiki.org


-- F.

jang

unread,
Jul 2, 2009, 6:24:02 PM7/2/09
to TiddlyWiki
I'm using the feature to index hardware stock which isn't a normal
use, but in my view a macro should be treated by a preprocessor to
expand, before the code is evaluated, so the slice is effectively
there when referenced. Anyway, there may be a better way to "clone" a
template, to copy tags and all. I just don't know it yet.
On http://trac.tiddlywiki.org/wiki/register I'm getting "Page register
not found".
Thanks.

FND

unread,
Jul 5, 2009, 6:13:30 AM7/5/09
to Tiddl...@googlegroups.com
> On http://trac.tiddlywiki.org/wiki/register I'm getting "Page register
> not found".

Sorry, the link was broken - I've fixed that so it's pointing to the
correct location now:
http://trac.tiddlywiki.org/register


-- F.

Reply all
Reply to author
Forward
0 new messages