[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

RE: #include oddities.




On 19-Oct-01 Ken McGlothlen wrote:
> I have a situation where my WML file includes a file in a subdirectory, which
> includes another file in that same subdirectory.  Here are the files:
 
> test.wml:
>         #include '.toc/tt.wmi' 

> .toc/tt.wmi:
>         #include 'tt.chp'
 
> .toc/tt.chp:
>         <li/>Item 1

That does not work since all paths are relative to test.wml.
You should use definition-variables defined in .wmlrc:
e.g.:
-D TOCPATH~"./toc"

then:

test.wml:
          #include '$(TOCPATH)/tt.wmi'
.toc/tt.wmi:
          #include '$(TOCPATH)/tt.chp'


Cheers!
 -jan



______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com