Difference between revisions of "User:Sophira"
From Dreamwidth Notes
(Proposal for Template Toolkit) |
(No difference)
|
Latest revision as of 22:49, 26 January 2010
Proposal for Template Toolkit
After we complete the conversion to TT, am I right in thinking that our main directory to work in is no longer going to be htdocs/
but a subdirectory of cgi-bin/DW/Controller/
? If so, is it worth it to actually put these files in a controllers/
directory instead so that it's easy to remember? For the main area of the code, that long path isn't very straightforward.
I do realise that this would make a straightforward use
not work, as-is. Maybe we could have a cgi-bin/DW/Controller.pm
that we can call with something like use DW::Controller qw(Nav);
, at which point it loads controllers/Nav.pm
and we can use DW::Controller::Nav.
I also think this will help developers - new and old - understand where the big things are.