Re: [include file=filename.inc&strip=t]

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43587
interpreted = N
texte = I here ya. No promises, but I'll see what we can work out for 5.0 with regards to this issue.> -----Original Message----- > From: WebCatalog Talk > [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf > Of John Peacock > Sent: Thursday, September 19, 2002 10:21 AM > To: WebCatalog Talk > Subject: RFE: [include file=filename.inc&strip=t] > > > 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. > > Thanks > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 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/ ------------------------------------------------------------- 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:

    
  1. Re: [include file=filename.inc&strip=t] (Rob Marquardt 2002)
  2. Re: [include file=filename.inc&strip=t] (Brian Fries 2002)
  3. Re: [include file=filename.inc&strip=t] (Donovan 2002)
  4. Re: [include file=filename.inc&strip=t] (Louis A Perosi 2002)
  5. Re: [include file=filename.inc&strip=t] (Brian Fries 2002)
  6. Re: [include file=filename.inc&strip=t] (Donovan 2002)
  7. Re: [include file=filename.inc&strip=t] (Brian Fries 2002)
  8. Re: [include file=filename.inc&strip=t] (Kenneth Grome 2002)
  9. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  10. Re: [include file=filename.inc&strip=t] (Brian Fries 2002)
  11. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  12. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  13. Re: [include file=filename.inc&strip=t] (Brian Fries 2002)
  14. Re: [include file=filename.inc&strip=t] (Brian Fries 2002)
  15. Re: [include file=filename.inc&strip=t] (Donovan 2002)
  16. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  17. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  18. Re: [include file=filename.inc&strip=t] (Andrew Simpson 2002)
  19. Re: [include file=filename.inc&strip=t] (Larry Goodhew 2002)
  20. Re: [include file=filename.inc&strip=t] (John Peacock 2002)
  21. Re: [include file=filename.inc&strip=t] (Alain Russell 2002)
  22. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  23. Re: RFE: [include file=filename.inc&strip=t] (Brian Fries 2002)
  24. Re: RFE: [include file=filename.inc&strip=t] (Gary Krockover 2002)
  25. Re: RFE: [include file=filename.inc&strip=t] (Brian Fries 2002)
  26. Re: [include file=filename.inc&strip=t] (Scott Anderson 2002)
  27. RFE: [include file=filename.inc&strip=t] (John Peacock 2002)
I here ya. No promises, but I'll see what we can work out for 5.0 with regards to this issue.> -----Original Message----- > From: WebCatalog Talk > [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf > Of John Peacock > Sent: Thursday, September 19, 2002 10:21 AM > To: WebCatalog Talk > Subject: RFE: [include file=filename.inc&strip=t] > > > 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. > > Thanks > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 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/ ------------------------------------------------------------- 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/ Scott Anderson

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:

type 2 errors with ssl server (1997) [showif [numfound]=0]? (2000) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Questions (1998) Problems with [Math] (1998) Automated FTP from Shell (2004) Listfiles (1998) [WebDNA] Image Magick and Webdna (2009) Setting a range in a search (1998) NT considerations (1997) Searching Multiple DBs (1997) PCS Frames (1997) Sendmail doesn't (was Queertrons?) (1997) WebCat2b15MacPlugin - showing [math] (1997) Write Permissions with OSX and WebDNA 4.5 (2002) Webstar 1.3.1 PPC (1997) [WebDNA] showif with empty variable (2015) wee problem (2001) 2.0Beta Command Ref (can't find this instruction) (1997) [OT] Browser's search via javascript? (2003)