Hi,
I'd like to have some construct like this in a template:
#if(templateExists($template))
#parse($template)
#end
Is there a canonical/approved way of doing this? I've put the
VelocityEngine into the context and tried:
#if($engine.resourceExists($template))
...
#end
But that still throws an exception when $template does not exist. I
want to avoid the exception and simply skip #parse'ing if a template
does not exist
Thanks,
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org