Jim Reesman wrote:
> 
> Hi,
> 
> I'm trying to use Velocity #include and #parse directives, but can't seem to
> get them
> to work. Velocity.log reports
> 
> [info] ResourceManager : found navigations/breadcrumbs.vm with loader blah,
> blah...
> [error] #include : cannot find navigations/breadcrumbs.vm template!
> 
> when handling a .vm that contains
> 
> $navigation.setTemplate("breadcrumbs.vm")
> 
> and
> 
> #include("navigations/breadcrumbs.vm")

I answered this over on the Velocity list.

Velocity checks for templates based on the nodes listed in it's
loader.path property, so if "navigations" is a node in the path list for
the file resource loader, then you mustn't specify "navigations" again
in the #include(), unless there is a "navigations" directory under
"navigations".

geir

 
> The .path property is set properly and reported correctly in velocity.log
> (and all
> 'automatically' loaded templates are working fine...).
> 
> Is there a known explanation for this, or can someone please give me some
> pointers
> on what to check as I begin to debug this?
> 

-- 
Geir Magnusson Jr.                           [EMAIL PROTECTED]
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
Well done is better than well said - New England Proverb

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to