- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Sorry I fail to see how <%= WelcomeMessage %>is so much harder than @@ WelcomeMessage @@ or its like. But I guess I'm just not understanding the full requirements of what and how they would change. I DO think it would be way easier to to what your describing in asp.net than ASP, because what you are talking about sounds like User Controls, JSP tags or even coldfusion tags...none of which was available in ASP/PHP as far as I know. Basically a tag where the dumb user just specifies the name of the tag and a bunch of properties:
<WELCOMEBANNER color="green" image="/banners/greenbnr.gif" styleclass="somestyle" message="Welcome to our site" />
Is this kind of what you're talking about? I guess that would go way beyond the simple variable replacement and would require some hacking to do in asp or php. In .NET, Java or Coldfusion though it would be simple...
Admin
Principle of least privilege also raises its ugly head here. Consider a content engineer who's gotten a hold of an ASP book and wants to start fooling around. If you give him access to an ASP page full of <% = orderTotal %> etc, he might start putting FormatNumber()'s and even If / Then's in there..
The templating system stops this because ASP directives he ads won't be processed, just dumped as raw text to the browser.
Admin
I'd have to agree, it's a common pattern, though maybe the implementation leaves something to be desired.
Admin
Hmm, I did this with Perl CGI, about 7 years ago... First interactive website I did, a VERY basic CMS... I didn't know any better :)
Admin
For fuck's sake this guy is a lunatic!
Admin
[:$][8-|][6][*][8][8][<:o)][:^)][pi][mo][8o|][^o)][N][+o(][U][li][ip][ap][S]
Admin
thanks