ViewTemplate recursive

7 views
Skip to first unread message

RA

unread,
Jul 8, 2009, 3:10:39 PM7/8/09
to TiddlyWiki
Not sure if this is 2.5.2 issue, but I used to see my ViewTemplate as
preformatted text, and now if I try to open it Firefox goes into an
infinite recursion, trying to render ViewTemplate within ViewTemplate,
until it times out with "Stop Script" dialog.

I have this in my ViewTemplate. Does this mean hideWhen/showWhen don't
work in 2.5.2?

<div macro="hideWhen tiddler.tags.containsAny
(['CSS','css','html','pre','systemConfig']) && !tiddler.text.match
('{{'+'{')"><!--▐▌(4)-->
<div class='viewer' macro='view text wikified'></div>
</div>
<div macro="showWhen tiddler.tags.containsAny
(['CSS','css','html','pre','systemConfig']) && !tiddler.text.match
('{{'+'{')"><!--▐▌(4)-->
<div class='viewer'><pre macro='view text'></pre></div>
</div>


Ken Girard

unread,
Jul 8, 2009, 4:17:27 PM7/8/09
to TiddlyWiki
HideWhen does work in 2.5.2
I think there is something else in the code in your ViewTemplate
causing the issue.
Post us a copy of all the code in it, please.

Ken Girard

RA

unread,
Jul 8, 2009, 5:08:25 PM7/8/09
to TiddlyWiki
> Post us a copy of all the code in it, please.

Here you go, thanks.

http://tiddlywiki.pastebin.com/m35af0940

Reply all
Reply to author
Forward
0 new messages