This article and this article were very helpful. And so was the fact that we use Template Toolkit and a shared template directory for all sites.