This is a discussion on "Template Processing" within the Classic ASP section. This forum, and the thread "Template Processing are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Template Processing
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Template Processing
I'm writing another template reading. This time around I'm making the template file XML based. The basis of this class is to open a xml and process the custom tags "template" and "item".
The only draw back is that all the HTML you use in the template has to follow XML rules. Case sensitive and close every tag. But the bright side is that it makes it easy for any none technical people to modify the template and do little to no asp code change. Currently, this class can only process a multi-dimensional array. But I will be adding a Auto Request.Form and Recordset processing. Then finish this bad boy with a send html/text email from the processed template. Thought some of you might want to take the basic concept and build the rest on your own or what not. Either way, On With the CoDe.. ASP CLASS AND USAGE CODE
|
|
|
|
#2
|
|||
|
|||
|
In your 'Output' function why have you used 'Output = replace(output,"","")' four times, won't one have done?
u2o |
|
#3
|
||||
|
||||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote"> In your 'Output' function why have you used 'Output = replace(output,"","")' four times, won't one have done?
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Actually, that code does nothing, but I think Vor's intention is for you to fill in the processing section yourself!! I actually have what I consider to be a much better templating system than this (Not to knock Vor's way, but mine has been kicking around for ages, and has been built upon for a few years now), which will process either a standard HTML template, or an XHTML compliant template and allowing for dynamic content anywhere in the template including the Head section... header content and footer (In fact anywhere).... I will get round to posting it as soon as I get time... I am up to deadline on 3 sites at the moment and am a bit pushed!
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#4
|
||||
|
||||
|
Giving it away now are we!? I'll be looking for it. My version is outdated now. :razz:
|
![]() |
| Tags |
| template, processing |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple Word Processing | ITG | Job Opportunities | 0 | Dec 4th, 2007 09:58 |
| Ah form processing doing my head in! | 1840dsgn | PHP Forum | 7 | Jul 17th, 2007 23:14 |
| problems with form processing | tooie | Classic ASP | 3 | Apr 26th, 2006 17:34 |
| More questions on web processing scripts | a.jenery | PHP Forum | 5 | Mar 2nd, 2006 14:56 |
| Form processing javabean | kinjiro | PHP Forum | 0 | Aug 9th, 2004 14:18 |