[Rest2web-develop] Re: Enhancement suggestion to rest2web
Brought to you by:
mjfoord
From: V. <Gae...@no...> - 2006-04-09 22:12:22
|
On Sun, Apr 09, 2006 at 10:42:26PM +0100, Michael Foord wrote: > > * A inlined function, such as <# print(2*2) #> should be able to a= dd > > files to the restindex['file'] list. That should probably be > > rather easy to add. > There are several ways of doing this (including writing your own=20 > function and just importing it in the template). I am reluctant to modify the rest2web files. But maybe I missed a way of doing this without modifying them. Currently I am only coding embedded code in the template. > Where do you want to move files from and to ? Currently the 'file'=20 > keyword only moves files into the same directory as the target file=20 > being created. Is this what you want to do ? You mean if the file keyword is "foo/bar" rest2web won't create a foo subdirectory in the target directory and copy bar there ? If so then I think it would be an interesting feature to add. > I'm sure there is an easy function you could write to do this - I would= =20 > be happy to include it in the set of standard functions if it was=20 > general enough. I have been trying to, but I cannot find a way of retrieving the target directory with embedded code. Are you suggesting that I modify function.py to add such a function and send you a patch ? I'll have a look at that. If you can give me some advice on implementing that I am more then happy to do it. > I've been planning to add hashing for a while. > I am now busy implementing it - it jumped the queue ! > It might still take a couple of weeks to get right, maybe less. The more I think about it the more I think there is a certain amount of work. But I think it will be a very useful feature. Thanks for such quick feedback (I joined the sourceforge mailing list and saw your mail). --=20 Ga=EBl |