On Friday 10 January 2003 09:21, J�rg Walter wrote:
> Sorry to say, but SimpleTaglib (which AxKit::XSP::Auth is based on)
> does not support arbitrary content tags, at least not that easy. You
> will have to do do tricks with "sub TAGNAME__open" or something like
> that to put your "if ($true) {" wrapper around the content. 

OK, I see. 

>How
> exactly to do this depends on how you implemented your current idea.
> Look at the manual page for
> Apache::AxKit::Language::XSP::SimpleTaglib to see what it offers.

Yup, read it, but don't grok it... :-)

> Being the developer of both, I would also be happy to take a look at
> the source and make suggestions on how to do that.

Cool, thanks! 

> Another idea that strikes me, wouldn't it be handy instead to have a
> generic taglib that serves the same purpose? Not just
> AxKit::XSP::Auth has true/false tags. Didn't think further about that
> yet, but what do you think?

Absolutely! :-) It occured to me that many if not most of the situations 
where you have 
<xsp:logic>if (<ns:something blah blah>) { ... } </xsp:logic>
where <ns:something> is returning boolean, could be replaced more 
elegantly with such a construct.

So, absolutely, I think this would be a really good idea.

Cheers,

Kjetil (who is having some bad trouble with his mailserver)
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to