> 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.
>
Bob, thanks a lot for taking the time to reply.
I did actually try this earlier (Velocity.templateExists as well as
Velocity.resourceExists) and I was still getting the same parse error.
I tried this:
#if (Velocity.templateExists("template.htm") == true)
#parse("template.htm")
#end
As well as this:
#if (Velocity.resourceExists("template.htm") == true)
#parse("template.htm")
#end
The error I am getting: Page Parsing Error
Source: /border-template.htm
Message: Was expecting one of: "[" , "{" , "(" , <WHITESPACE> ,
<STRING_LITERAL> , "true" , "false" , <INTEGER_LITERAL> ,
<FLOATING_POINT_LITERAL> , <IDENTIFIER> , "{" , <LOGICAL_NOT>
Regards,
Prem