[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Praise and a question



I just want to start by saying what a boon WML has become in my
projects. Being able to use makefiles and such to keep a layer of
abstraction between code and presentation is wonderful...

I do, however, seem to have run up against a small snag. I use PHP, and
I cannot seem to get the following consrtuct to work in WML 2.0.1. I'm
wondering if it is me, the language, or what...

I want to do something like:
$(some_var:-"$php_var")

ie, if some_var is not set from WML, I want it to default to a string
containing a $, but this just seems to hang WML indefinitely...I'm
resonably sure it's trying to resolve the php_var part.

Is there any way to do this? It does not seem to be honoring the
backslash escape...

I also tried using pass 3, but I couldn't seem to figure out the proper
usage there either (at least ePerl would bomb on me...ipp just hangs).

So, am I nuts? Is there just not any way to do this? Or am I just
missing something obvious? (20 hour days'll do that to a guy...)

TIA,
Joey

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com