Re: Euphoria as Apache Module
- Posted by Robert Craig <rds at RapidEuphoria.com> Aug 08, 2005
- 533 views
cklester wrote: > Rob, what would it take and why wouldn't you make this possible? > > I've come to a circumstance where I want a link to appear conditional on some > variable. How would you (or anybody else) handle this? In PHP (as an example), > you could do something like > > <? > if(test,"HTML code","") > ?> > > (That might not be syntactically correct, but it's semantically correct.) > > That code is embedded in the HTML. With Euphoria, you can't do that (yet). > So I'd either have to program the entire page (no thanks!), or...? I think I know what you mean. I've run into that myself. You have a big chunk or maybe a whole large page of HTML to output, but with a bit of variable stuff mixed in. It gets a bit tiresome to have to say: puts(1, " blah blah blah ... \n") puts(1, " yada yada yada ... \n") etc. You'd like to put a large multi-line literal string into your program without having to add quotes, new-lines, brackets etc. everywhere. i.e. just: blah blah blah ... yada yada yada ... Normally Euphoria limits strings to one line (though you can use & to get around that). I guess we could invent some new syntax for that situation. I'm open to suggestion. I don't think it would be hard to implement. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com