Re: Clean source code
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69196
interpreted = N
texte = How about using functions for your code? That way you can create librariesthat you can reuse and the [return] feature works extremely well for gettingrid of extra spaces. Laters, Olin -----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of DanStrongSent: Monday, July 23, 2007 8:47 AMTo: WebDNA TalkSubject: Re: Clean source codeMatthew,Yes, that's exactly what I'm talking about. I will give your solution a try.Thanks,-DanOn Mon, 23 Jul 2007 08:54:33 -0400 Matthew A Perosi
wrote:> Dan,> > Are you talking about finding a good way to remove all the blank lines >that are created in the HTML by every line of WebDNA code? If so, thenhere's what I do:> > When I have a block of code that will create many blank lines (like a >loop or founditems) I will put "[text]garbage=" at the beginning of the >block and then "end garbage[/text]" at the end of the block. This will >hide all blank spaces in my final HTML. However, it also hides output, >so I have to create a [finaloutput] variable inside the code block. I >keep adding my results to that [finaloutput] variable and then after theloop is completed I show that [finaloutput] variable. This technique hassped up a lot of my heavily processed pages.> > -----------------> Matthew A Perosi-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
How about using functions for your code? That way you can create librariesthat you can reuse and the [return] feature works extremely well for gettingrid of extra spaces. Laters, Olin -----Original Message-----From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of DanStrongSent: Monday, July 23, 2007 8:47 AMTo: WebDNA TalkSubject: Re: Clean source codeMatthew,Yes, that's exactly what I'm talking about. I will give your solution a try.Thanks,-DanOn Mon, 23 Jul 2007 08:54:33 -0400 Matthew A Perosi wrote:> Dan,> > Are you talking about finding a good way to remove all the blank lines >that are created in the HTML by every line of WebDNA code? If so, thenhere's what I do:> > When I have a block of code that will create many blank lines (like a >loop or founditems) I will put "[text]garbage=" at the beginning of the >block and then "end garbage[/text]" at the end of the block. This will >hide all blank spaces in my final HTML. However, it also hides output, >so I have to create a [finaloutput] variable inside the code block. I >keep adding my results to that [finaloutput] variable and then after theloop is completed I show that [finaloutput] variable. This technique hassped up a lot of my heavily processed pages.> > -----------------> Matthew A Perosi-------------------------------------------------------------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 toWeb Archive of this list is at: http://webdna.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://webdna.smithmicro.com/
"Olin Lagon"
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:
Grepping text variable tags (was: No subject given) (2000)
PCS Frames (1997)
Sort Order on a page search (1997)
Q: writefile and uploads. (1998)
WebSite and *NO* Authentication Dialog Box!!? (1998)
Server IP address? (1998)
Date Calulation (1997)
Support ?? (1997)
normal users.db calls ... (1998)
[WebDNA] client request (2010)
WebCat NT v. Mac (1997)
Running 2 two WebCatalog.acgi's (1996)
PC Authorize & Webmerchant (1998)
WebCat2final1 crashes (1997)
Sorting error (1997)
off topic - dna snipets (1997)
[WebDNA] WebDNA future (2010)
Bulk Email >>>>Any ideas? (2001)
request for new command (1997)
WebCat Emailer & Liststar (1997)