Re[6]: [GEN] Template Handler
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Sep 27, 2001
- 426 views
> Thomas, <snip> > I can think of these problems, though: > 1. there is a possibility/likelihood of duplicate filenames with different > people submitting various template files, not sure exactly how to handle > that; Maybe encouraging version numbers in the filenames would go some way to helping with that... Of course it wouldn't really matter what the files were called, but I guess it would be a bit of a pain for the user to have to rename files before placing them in the directory. > 2. it ends up putting potentially lots of little files on peoples drives > instead of a smaller number of larger files. Of course, the user could > relatively easily manually combine files of identical categories into one > file, but I'd hoped to make that kind of thing unnecessary. Or I could make > the handler discern when there are multiple files of the same category, and > ask the user if they want them combined into one file, maybe. I'm not sure that's such a bad thing, depends how many it gets to be I guess :) > 3. and there's a kind of "general" problem of how would a user easily know > which templates are really new and which might they already have, perhaps in > a file with a different name or something; I really want to make the process > of adding (& fixing buggy templates!) *very* easy for the user. Maybe each template should have a identifier (name) and version number, if 2 clash then the one with the highest version number is used. Would be cool to have an option to see older versions :) > But other than that it sounds like a good, simple idea which I should be > able to implement fairly easily (& that's a big plus too!). > > I'll probably give it a try, thanks! It's so easy to make suggestions when your not the one who has to implement them :) > Dan Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying