Re: [include file=filename.inc&strip=t]
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43601
interpreted = N
texte = Is there a way for the parser to defferentiate between the EOL's that it hasinserted as a side effect of processing the code versus the ones that havebeen placed in code by the developer?----- Original Message -----From: Scott Anderson
To: WebCatalog Talk Sent: Friday, September 20, 2002 6:43 AMSubject: Re: [include file=filename.inc&strip=t]> One idea that comes to mind is the introduction of a post-parse action.> This action could take the form of a WebDNA code block, which could be> persisted in the admin prefs. This code block would then be applied toall> parsed results, just before being returned to the webserver. It wouldthen> be simple matter to define a WebDNA post-parse block of code to strip out> EOL's (or whatever), and this would be applied to every templateprocessed.> Any feedback?>> > -----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/-------------------------------------------------------------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:
Is there a way for the parser to defferentiate between the EOL's that it hasinserted as a side effect of processing the code versus the ones that havebeen placed in code by the developer?----- Original Message -----From: Scott Anderson To: WebCatalog Talk Sent: Friday, September 20, 2002 6:43 AMSubject: Re: [include file=filename.inc&strip=t]> One idea that comes to mind is the introduction of a post-parse action.> This action could take the form of a WebDNA code block, which could be> persisted in the admin prefs. This code block would then be applied toall> parsed results, just before being returned to the webserver. It wouldthen> be simple matter to define a WebDNA post-parse block of code to strip out> EOL's (or whatever), and this would be applied to every templateprocessed.> Any feedback?>> > -----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/-------------------------------------------------------------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/
Andrew Simpson
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:
WebCat2 Append problem (B14Macacgi) (1997)
Tab Charactor (1997)
Hosting (2000)
RE: [WebDNA] Better names ... (2012)
Multi-Row Tables from a search. (1997)
Strange ThisURL under Linux (2000)
database size? (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
NT Version on IIS 4.0 (1997)
[OT] Local San Diego SIGs (2003)
Time math (2002)
large database (2000)
Help! WebCat2 bug (1997)
Not really WebCat - need HTML Grider (1997)
Mac v. NT (1998)
all db's in one folder and protected (1998)
Passing values (1999)
[append] problem (1997)
Number of Open Databases (1998)
return missing item (was:WebCat Sales) (1997)