On Tuesday 26 November 2002 12:01, Matt Sergeant wrote: > SimpleTaglib inserts what you return as perl code into the resulting > XSP file.
OK. > So what you need to insert is not 'data1', it's actually > '"data1"' Aha! Great, that works! > Confused yet? Eh, well, when you ask, as a matter of fact, I am... :-) For what if these strings are not typed as constants, but pulled from e.g. a database? You would have to quote every string that the query returns, which would be very inconvienent? Is there a simple workaround around this problem? > Personally I find TaglibHelper a little easier to use, and if you had > used it you would have found that your string would have been > inserted as you expected. But it depends what you like. If you grok > the fact that taglibs just insert code into your XSP file, then > SimpleTaglib is for you. Hehe, I cannot claim to grok anything right now... :-) But certain things are dawning, and I'm happy about that. Well, what made me decide in favor of SimpleTaglib was this sentence from Barrie's tutorial: | This module performs roughly the same function as Steve Willer's | TaglibHelper, but supports namespaces and uses a feature new to Perl, | subroutine attributes, to specify the parameters and result formatting | instead of a string. I'm making intensive use of namespaces, so that's important, and the subroutine attributes seemed rather neat, though I've never seen them before. However, it was never clear to me how SimpleTaglib's use of namespaces was a significant improvement over that of TaglibHelper, because they both have a $NS-variable. > If you don't care about the details of that, > then you'll be happier with TaglibHelper. Perhaps. It's the stuff with namespaces that were important to me, subroutine attributes just seemed elegant, but is not important. So, if there isn't really a big difference between the namespace usage in SimpleTaglib and TaglibHelper, then I might as well go for the latter... Thanks so much for your message, it definately cleared up a lot of confusion! Cheers, Kjetil -- 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]
