freemarker-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taher Alkhateeb <slidingfilame...@gmail.com>
Subject Re: include with custom parameter
Date Mon, 03 Apr 2017 08:46:08 GMT
Oops, crossed on wire. Thank you for pitching in, I guess the thread is
answered now :)

On Mon, Apr 3, 2017 at 11:43 AM, Daniel Dekany <ddekany@apache.org> wrote:

> Hello,
>
> There's no such feature. If a reusable template fragment has
> parameters (or has nested content), then you meant to use macros (or
> functions).
>
>
> Sunday, April 2, 2017, 11:47:54 PM, Ingo Mahnke wrote:
>
> > Hallo,
> > maybe someone can help me.
> > Is it possibile to use custom parameter with the include directive?
> >
> >
> > Template 1
> > ....
> > ....
> > <#include "template2.ftl" param=v1>
> > ...
> > ..
> >
> >
> > template2.ftl
> > ....
> > ...
> > <#if (param=="v1")>
> > ..
> > ..
> > <#else>
> > ..
> > ..
> > </#if>
> >
> >
> > Thank you very much!!!
> >
> > Ingo
> >
> >
>
> --
> Thanks,
>  Daniel Dekany
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message