perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fisher, James" <>
Subject Some design help...
Date Tue, 04 Jun 2002 16:00:10 GMT
Greetings all,

Here is the functional design.  Create an interface so users can create
emails.  However, these emails have to be customized via user attributes and
other "service" calls.  For example, here is some sudo code.

Hello <% =USER_NAME %>,

The temperature in your zip code is <get_temperature(ZIP_CODE)>.  

<% if USER_GENDER = "Male" { %>
	You are male 
<% else %>
	You are female
<% end if %> 

It seems I have to make two passes over the code.  On the first pass I have
to resolve the user attributes so they can be used in the next pass.  The
second pass is for what I'm calling "service" calls.  For example, if I want
to grab the temperature for your zip code.  I've been looking at template
modules all morning and I don't like their syntax relating to if/looping
logic.  I am looking for a more tag-lib based approach while giving me the
ability to do if/looping logic.  Since Apache::ASP has both and our users
have asp code editing experience, I am trying to use it.    However, I am
stuck on the best way to resolve the user attributes first and then resolve
my Apache::ASP code (taglibs + logic).


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message