[mod_python] And how to use <%@ include %> directive ?

Nuno Salgado nuno at salgado.no-ip.com
Sat Mar 5 22:11:38 EST 2005


I think you are using it well.

I use it with a relative path to the 'main' file, like:
<%@ include file="../Header.psp"%> or 
<%@ include file="frm.psp"%>
and it works ok (note that the path to the file must be a str constant).

Regards,

----- Original Message ----- 
From: "Dmitriy Kurilov" <dmkurilov at mail.ru>
To: <mod_python at modpython.org>
Sent: Friday, March 04, 2005 6:05 AM
Subject: [mod_python] And how to use <%@ include %> directive ?


How do you do, everybody.

Please, help me a little.

When I try to use include directive it includes nothing.
For example:

<%
if username == 'Greptham':
        #
%>
<%@ include file='/full/path/to/file' %>

, but it includes nothing... Unfortunately... Even if I just wrote:
<@ include file='/path/to/file' %>

How to use it?
_______________________________________________
Mod_python mailing list
Mod_python at modpython.org
http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list