in reply to Re^2: Refactoring webcode to use templates
in thread Refactoring webcode to use templates

Have you considered structuring your files as modules instead?

This is exactly the sort of thing that I am moving away from...lots of require files. Thanks to the good influence of the Monastery, I am now using modules for new code. This whole refactoring project will revolve around rewriting require as use modules...