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

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43606
interpreted = N
texte = The great benefit, Donovan, is that when you replace your library of frequently-used include files with a library of functions, they will be easier to use, and the code will be much easier to read and maintain.This will allow the development of extensive code libraries that can be included at the top of your pages for doing all the simple things you have to code over and over again. These will then be customizable extensions to the WebDNA language that are called in a syntactically consistent manner to the built-in WebDNA tags.For example, you could write a GMTTime function that you could call with:[GMTTime offset=2&unit=days]that would return a properly formatted GMT time stamp offset 2 days from the current time.Or an Email Validator called like:[showif [ValidEmail email=[theEmail]]=T]Or an AddToCart function that adds things your way, with whatever options you may need.The possibilities are endless.- brianAt 4:39 PM 9/19/02, Donovan wrote: >Scott Anderson wrote: > >> I see your point. I think it would be good to do both, create a global >> method and a new context, for removing extraneous white space. >> >> You will appreciate the new [function name=MyFunction...] context I just >> finished implementing for 5.0. Instances of the 'user defined' functions >> have their own parameter and variable name space. It has come in very handy >> for our 5.0 template development. > >trying to understand.... >How is this different from an [include file=] context? > >Donovan------------------------------------------------------------- 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)
The great benefit, Donovan, is that when you replace your library of frequently-used include files with a library of functions, they will be easier to use, and the code will be much easier to read and maintain.This will allow the development of extensive code libraries that can be included at the top of your pages for doing all the simple things you have to code over and over again. These will then be customizable extensions to the WebDNA language that are called in a syntactically consistent manner to the built-in WebDNA tags.For example, you could write a GMTTime function that you could call with:[GMTTime offset=2&unit=days]that would return a properly formatted GMT time stamp offset 2 days from the current time.Or an Email Validator called like:[showif [ValidEmail email=[theEmail]]=T]Or an AddToCart function that adds things your way, with whatever options you may need.The possibilities are endless.- brianAt 4:39 PM 9/19/02, Donovan wrote: >Scott Anderson wrote: > >> I see your point. I think it would be good to do both, create a global >> method and a new context, for removing extraneous white space. >> >> You will appreciate the new [function name=MyFunction...] context I just >> finished implementing for 5.0. Instances of the 'user defined' functions >> have their own parameter and variable name space. It has come in very handy >> for our 5.0 template development. > >trying to understand.... >How is this different from an [include file=] context? > >Donovan------------------------------------------------------------- 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/ Brian Fries

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] WebDNA Crashing or Not **YES** (2008) using showpage and showcart commands (1996) orderfile and setlineitems (1998) Mac: LModelDirector bug fix (1997) WebCatalog2 for NT Beta Request (1997) Extra Text Fields (was Another question) (1997) Sort Order on a page search (1997) Online reference (1997) Banners and sort of random display (1997) Appending problem (still) on Solaris (2000) ampersand (1998) New Command prefs ... (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Number of Open Databases (1998) [WebDNA] Upgrade from OS 10.7.5 WebDNA 6.2 to Mavericks (2014) search form problem.. (1997) Re:Searching for ALL / empty form field (1997) It just Does't add up!!! (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) How do I enter a carriage return for my StartAfter valuein (2002)