RFE: [include file=filename.inc&strip=t]
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43585
interpreted = N
texte = Working with the two include files I just posted, I was again reminded how stupid WebDNA is with regard to extraneous whitespace like EOL characters. Sure, when displayed to a HTML browser, multiple EOL's or spaces will be supressed. However, just looking at the maze of [!][/!] contexts I had to put in that file emphasizes that this is poorly designed behavior.I have long argued that only a handful of contexts require maintaining the EOL characters ([sendmail] and [writefile] being the two most obvious). Every single other context could easily strip EOL's without interfering in the coding in the slightest. Grant shot me down, I think because it would mean branching the parser to know when to strip and when not to strip, based on context.Hence, my suggestion that the [include] context at the very least include a strip=t option (defaults to F) so that it would be much easier to write user defined functions. I want to return only the text I want to return, without extraneous EOL characters, and without having to load up my source code with an unreadable mass of [!][/!] contexts.In fact, if the parser were altered to support this for all contexts, defaulting to F, I could reduce the size of my pages by a significant percentage, just by supressing those stupid EOL's.When writing CGI code in Perl, I usually turn off the extra EOL's after I have debugged the code. It makes view source less useful, but it has a definite impact on how fast the page loads to have all of the HTML on basically a couple of lines.ThanksJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Working with the two include files I just posted, I was again reminded how stupid WebDNA is with regard to extraneous whitespace like EOL characters. Sure, when displayed to a HTML browser, multiple EOL's or spaces will be supressed. However, just looking at the maze of [!][/!] contexts I had to put in that file emphasizes that this is poorly designed behavior.I have long argued that only a handful of contexts require maintaining the EOL characters ([sendmail] and [writefile] being the two most obvious). Every single other context could easily strip EOL's without interfering in the coding in the slightest. Grant shot me down, I think because it would mean branching the parser to know when to strip and when not to strip, based on context.Hence, my suggestion that the [include] context at the very least include a strip=t option (defaults to F) so that it would be much easier to write user defined functions. I want to return only the text I want to return, without extraneous EOL characters, and without having to load up my source code with an unreadable mass of [!][/!] contexts.In fact, if the parser were altered to support this for all contexts, defaulting to F, I could reduce the size of my pages by a significant percentage, just by supressing those stupid EOL's.When writing CGI code in Perl, I usually turn off the extra EOL's after I have debugged the code. It makes view source less useful, but it has a definite impact on how fast the page loads to have all of the HTML on basically a couple of lines.ThanksJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] Successful, working WebDNA7/CentOS install? (2013)
Hideif not working? (2001)
Replace context (1998)
DataBaseHelper Flawed (1997)
Username for Admin Group (1997)
[format 40s]text[/format] doesn't work (1997)
ADD a product without Database (1998)
Pithy questions on webcommerce & siteedit (1997)
Summing fields (1997)
newbie question about zip code search (2003)
GoLive CyberStudio 1.0.1 (1997)
Emailer (1997)
WebDNA resources (Was: I am sorry...) (2004)
WC2.0 Memory Requirements (1997)
GuestBook example (1997)
Corruption in images (2004)
Viewing old carts (was FEW QUESTIONS) (1997)
5.0 Pricing (2003)
taxRate is fine but taxTotal isn't (1997)
instant email reply (2001)