Hi Prem,

I haven't tested myself but isn't the templateExists function part of
the Velocity class?

So you should do this instead:

#if (Velocity.templateExists("empty.htm")
#end

Also it seems as if templateExists has been deprecated in favor of
resourceExists.

Hope this helps.

kind regards

bob

On Tue, Aug 11, 2009 at 6:12 PM, Prem Kurian
Philip<[email protected]> wrote:
> The problem is not with the #parse command but rather that I cannot get
> the template to render if I use the #templateExists function call within
> the template.
>
> Example: This generates a Page Parsing error:
>
> #if (#templateExists("empty.htm"))
>   Empty template
> #end
>
> Here I am having a completely empty file (empty.htm) with nothing in it.
> So the problem is with the call to templateExists.
>
> Regards,
> Prem
>
>



-- 
http://incubator.apache.org/click/

Reply via email to