I have a code design idea, but I am not sure if it is
all that efficient, so I wanted to ask if there is a
better way to do what I am thinking.

Suppose I have a script, like a bulletin board, which
I know will produce five webpages: 1.)view_posts_list,
2.) read_posts, 3) reply_2_post, 4.) confirm_post and
5.) error_mssg.  Currently, I look at it like I have
at least five subtroutines - one for each page - plus
any other subroutines that may be necessary. 
Basically, I just use perl to initialize the
variables, and then insert those values into the HTML
via the template tags.

The concern I am trying to lead up to here is that the
headers and footers in each "page"/subroutine are the
same from page to page.  If I understand correctly,
all this stuff gets compiled at runtime  The script
would probably be more efficient if I were able to
somehow "factor out" those common areas into the main
logic (main logic = driver) of the script, but I am
not sure how to do that.  Can anyone explain a way to
handle this?

Thanks,

Will

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to