I think the key distinction there is how unique is the site/project. Is it something that fits naturally in a CMS? Then for god's sake use a CMS. If it's something that doesn't fit naturally, it's just as much effort to figure out the hacks you did to make it fit as it is to figure out your from-scratch code.