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

Re: conditionel include

On Fri, 3 Dec 1999, Jan Holler wrote:

> Thu, 2 Dec 1999 09:04:13 +0100 (CET), you wrote:
> > Yes, have a look at Ralf's templates, he uses something like
> >    $(page:*# )#include "$(SNB_RC:-.wml_snb)"
> would you mind telling me the exact url. i could not find
> it in http://www.engelschall.com/sw/wml/com/tmpl/swpage.wml

For instance http://www.openssl.org/openssl.wml
I believed it was in the URL you mention, sorry.

> > The wml_p1_ipp(1) manpage explains how it works.
> really? there is something about expansion, but not too
> much of explaining. how would one translate the following
> to have a conditional include:
> #include '$(SUB_INCL)/s_submenu_def.wml'
> if present include it, if not, don't break, continue (and do
> other actions than when it is there).

You can't, but there are workarounds: you can test whether $(SUB_INCL)
is defined or not, for instance.

Denis Barbier
WML Maintainer

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