Ok, using the latest code. Thanks for fixing.
Now I'm trying to do something else with $extends...
I've got a structure like this:
WEB-INF/tmpl/_body.html
WEB-INF/tmpl/tour/tour.html
In tour.html:
<!--$extends _body.html -->
That works. That seems utterly broken to me though since I _could_ have tour/_body.html. Wouldn't they conflict at that point?
It seems like in my case, it should be:
<!--$extends ../_body.html -->
But that causes this error:
Caused by: cambridge.TemplateLoadingException: java.io.FileNotFoundException: ...../war/WEB-INF/tmpl/../_body.html (No such file or directory)
at cambridge.FileTemplateLoader.parseTemplate(FileTemplateLoader.java:80)
at cambridge.FileTemplateLoader.parseTemplate(FileTemplateLoader.java:73)
at cambridge.DirectoryTemplateLoader.parseTemplate(DirectoryTemplateLoader.java:59)
It seems to me like whatever is loading those templates should be resolving .. in paths better.
Thoughts?
jon