On Feb 10, 2008, at 4:38 PM, Sachin Mittal wrote:

>
> Hi,
> I see that under xwiki webapp there is a template directory, that  
> contains
> vm files. Same filenames are included in respective skins directory  
> also.
>
> So based on my understanding of how velocity files are called and  
> invoked
> upon user action, the vm files under templates directory play no role.

The template files are used when the vm file required cannot be found  
in the skin. The role of templates is to have common vm files located  
in one place and not copied in all skins. Right now this is a bit of a  
mess but in the very near future we'll move the Albatross templates  
into the templates directory and remove all vm files in the albatross  
skin so that a skin will consist of only images, css and possibly some  
Javascript.

> Also in some previous discussion it was mentioned that they were  
> redundant
> and there was a plan to separate common set of vm files into single
> directory.

Yes that's the templates/ directory...

> So I have two questions:
> 1. Can I delete the templates directory from my deployment.

No that wouldn't be following the direction set by the xwiki dev.  
Maybe you could tell us what you're doing and why you need to remove  
that directory?

> 2. If these files under this are no more required then what about  
> deleting
> them from svn istelf.

They are required.

> If have I have missed something and these files are required then  
> please let
> me know in what case would these be required.

I'd be interested to know what you're working on.

Maybe we can work together to better support your use cases, etc.

thanks
-Vincent

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to