On Mon, 27 Aug 2001, Gerald Richter wrote:

> > In that example, everything BUT the code in the middle works OK
> 
> If you replace the whole code in the middle by something really simple e.g.
> 
> [+ "Hello" +]
> 
> does it work then correctly ?

Some pages with the same general structure (calling the same imported
functions) do work correctly each time, so the answer to this question is
that I can get simple examples to work correctly.


> 
> If you say it doesn't work, what is happening. The code is ignored ? an
> error is displayed ? the wrong code is executed ?

I did some crude testing with text markers to see what was being executed,
and what wasn't.  I have a basic if-then-else looking at some parameters
to determine what to display, so I put some text between the correct [$
else $] and [$ endif $].  That text appears in the HTML source, but the
call to the subroute immediately beneath it doesn't produce any output
until the time is modified on the file:

[$ else $]
 <!-- Correct -->
  [- fellowship_listing -]
[$ endif $]

This returns the comment tag in the HTML, but it doesn't seem to get into
the fellowship_listing subroutine.  That subroutine contains some embeded
code, but it also contains 'plain' HTML -- and that isn't returned either.  
I haven't seen any errors in the embperl log, and the footer subroutine
from the imported file produces the correct close tags at the end of the
file.  I'm just a little puzzled about why the subroutine would fail to
produce any output when first evaluated, but would work OK once the file
appears to be modified.

I can send a short page that suffers from the problem either privately, or
on the list.

David
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to