• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

To include a condition, ala %IF%


TMPL:P already supports context conditions. It is very hard to work out the semantics for any more complex if expressions, as template definitions are expanded when they are loaded (hence the "TMPL:" part of the name), and there is no control over when they are loaded (they may be cached from a previous load, for example). Therefore TMPL: expressions have to be evaluated statically. Even context is extremely dodgy. You certainly can't assume any variable definitions, you can't assume and URL params. If you want to use these in the condition, you might as well use %IF.

In fact, I think this should be remove context conditionals from TMPL:P, so that templates can be cached.

CC

ItemTemplate
Summary Add TMPL:IF or extend TMPL:P
ReportedBy TWiki:Main.MeredithLesly
Codebase

SVN Range Thu, 29 Jun 2006 build 10750
AppliesTo Engine
Component

Priority Enhancement
CurrentState New
WaitingFor

Checkins

TargetRelease n/a
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-07-12 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback