Hi Leon:
I have tried again according to your suggestion. But it still can not work. I read the
webmacro document carefully and find the follow lines in "webmarco/doc/scripts.html":
-----------------------------------------------------------------------------------------
#parse file
The #parse directive includes a target file and parses it as though it were part of
the current template.
You can use this to include common template code that may be shared among several
different templates.
Here are some examples:
#parse "C:/webmacro/library/banner.wm"
#set $library = "C:/webmacro/library"
#parse "$library/banner.wm"
Note that you must normally specify an absolute path to the target. Future versions of
WebMacro may alleviate this restriction.
-----------------------------------------------------------------------------------------
It said in current version, we have to use absolute path. Have you try this #parse
function on you PC?
Regards&Thanks
fanyun
----- Original Message -----
From: "Leon Messerschmidt" <[EMAIL PROTECTED]>
To: "Turbine" <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 8:48 PM
Subject: Re: why #parse and #include can not work
> Hi
>
> > 1. add a line in an exist test.wm file like this:
> > #parse "/home/test/template/screens/abc.wm"
> >
>
> You need to add the *relative* path. This is path relative from the directory
>specified
> in your webmacro.properties.
>
> ~ Leon
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
N�.n�+�������'�+-�x��d�{.n�+�������~X��
+�)�v�,r��y�܆m���� ��V�r�y�&�۫n)��Ib��(�H��� ��&���nW��:'�x��