Okay I've included the two templates. Is sending attachments like this okay mailing
list etiquette? I don't want to fill up people's mailboxes any more than they want.
main.html is the master template and create_post_form.html is the template being
included via PROCESS within main.html
Brian
P.S. I'm sorry my mail client isn't maintaining the reply-to stuff correctly. I'm
using Outlook Exchange, does anyone know of a way to fix it?
-----Original Message-----
From: darren chamberlain [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [Templates] Exceedingly strange problem
* Hann, Brian <[EMAIL PROTECTED]> [2002-09-24 11:30]:
> I'm not sure how you mean, here's what I'm doing:
>
> I'm receiving the name of the template and then passing it to the
> process method as the variable tmpl. I'm then calling
>
> [% PROCESS $tmpl %]
>
> in the middle of the master template. If there's a better way to do
> this without variable interpolation, I'd like to try it.
Actually, this isn't the interpolation Chuck was talking about; I think
he meant setting INTERPOLATE => 1 in the Template constructor.
What you're doing is reasonable, and shouldn't trigger the interpolate
bug. Can you send more of your templates and calling code?
(darren)
--
God is love, but get it in writing.
-- Gypsy Rose Lee
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates
<%# Form to post a new topic/reply %>
<% USE YaBB2 %>
<% IF type == 'thread' %>
<% title = 'Post New Thread' %>
<% ELSIF type == 'reply' %>
<% title = 'Post Reply' %>
<% END %>
<% PROCESS nav/navtree.html %>
/<% YaBB2.getScript('Post') %>" method="post" name="postmodify">
<% IF type == 'thread' %>
">
<% ELSIF type == 'reply' %>
">
<% END %>
|
<% thread.values.subject %>
|
|
|
Subject:
|
Re: <% thread.values.subject %><%- END -%>" size="40" maxlength="50" tabindex="1">
|
|
|
|
| Notify of replies: |
Check this if you wish to be notified of replies to this topic.
|
Disable Smilies:
|
Check this if you'll be adding code (or don't like smileys).
|
|
shortcuts (IE and NS6 only): hit alt+s to send, alt+p to preview, or alt+r to reset
|
|
<%# The main template -%>
<% USE YaBB2 %>
<% PROCESS $tmpl %>
�<% Settings.YaBBTitle %>�
<% Settings.Copyright %>
|