This thread is continued from
http://www.wwwthreads.com/perl/showflat.pl?Cat=&Board=wishlist&Number=16894Over on the devel site I have converted a couple of the scripts to templates. Most of the functions from w3t.pm that print out HTML are finished. I've also finished with wwwthreads.pl and postlist.pl.
This seems to be working very nicely. It does require several templates for complicated scripts, like postlist.pl requires 5 different templates, with 2 of the templates having 4 variations, but this will probably be the exception instead of the rule. wwwthreads.pl required 5 templates but there were no variations of any of the templates. The majority of the other scripts will probably only require one or two. It might sound confusing, but it's not that bad.
Anyone interested can go look at the devel site at
http://www.wwwthreads.com/cgi-bin/devel/wwwthreads.pl. Take a look at wwwthreads.pl or postlist.pl, view the source and you will see where each template begins and ends as I've commented the templates for this purpose.
I've also symlinked the templates directory if anyone wants to take a look at the actual templates to see what they look like. You'll probably need to again view the source of these as when you click on them your browser might try to display them. You can view the templates at
http://www.wwwthreads.com/templates.
Also, at the bottom of the template directory listing, you'll see the README file that will be included in the templates directory if you care to read it.
Feedback appreciated.
Edited by Scream on 6/8/00 03:28 PM.