Posted by Myles on Wed Apr 14 16:01:45 1999
In Reply to: Re: Re: Re: Re: Re: paths to templates posted by william on April 14, 1999 at 15:37:32:
Distribution: | paneris@paneris.org |
---|
>>At 01:28 PM 4/14/99 +0100, William Chesters wrote:
>>>In any case I hope Chippy wasn't proposing hardwiring the directory
>>>name into 1000 different places in the source :) ?>>This confuses me. We have to hardwire the directory name in the
>>source where-ever we load in a template anyway, don't we? Oh, are
>>you saying that we don't have to do that 1000 times, just 10?
>>Certainly true.>Traditional "good practice" would be to put the directory
>name in precisely once in a named constant ... however I'm
>not seriously suggesting that.I think we should do that, though. At present we have a 'db.properties' file
which sets details about the database for each project. It seems natural
that we should make this a 'projects.properties' file and include extra
information including the path to the templates for that project.Myles