Howdy!

I had a few spare cycles waiting for another program to complete and started
reading about using Perlscript in ASP pages.  I tested some code and found
that H:T with a template worked just great! :)  Then I simply change the
code to reference H:T:E instead and the page did not error out, but also did
not produce any output - even with the debug statement set "on".

I also edited the same code to run as a perl page and had no problems.  I
was wondering if anyone has ever run into this problem before and if so, how
did you remedy this problem?

Any thoughts or comments would be most appreciated!  Otherwise I will try
and devote some time after the end of this month.
Thanx, Jeff.

PAGE CODE:
=============
<%@ LANGUAGE="PERLSCRIPT"%>
<%
                use Win32::ASP;
                use HTML::Template;
                ##############################################
                ##  HTML::TEMPLATE::EXPR PRODUCES NO OUTPUT ##
                ##############################################
        my $tmpl = HTML::Template->new(
        
filename => 'test-ht.tmpl',
        
path=>['C:/INETPUB/WWWROOT/DEVEL/HTDOCS/TEMPLATES'],
die_on_bad_params       => 0
, debug => 1
);

        $tmpl->param( TEST => '123' );
        ##print "Content-type: text/html\n\n", 
        print $tmpl->output;
%>

HERE IS THE TEMPLATE CODE:
================================
<HTML>
        <HEAD>
                <TITLE>Testing <TMPL_VAR NAME="TEST"></TITLE>
        </HEAD>
        <BODY>
                <H3 ALIGN="CENTER">TESTING <TMPL_VAR NAME="TEST">!</H3>
        </BODY>
</HTML>

OUTPUT TO BROWSER:
====================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information, the disclosure of which is governed by
applicable law.  If the reader of this e-mail is not the intended
recipient(s),  any unauthorized review, use, disclosure or distribution is
prohibited.  If you have received this message in error, please contact the
sender by reply e-mail and destroy all copies of the original message
immediately.


-------------------------------------------------------
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