How many of you have tried saving publish site as a template in SharePoint 2010 or 2013. Yeah ! You are spot on! It's not possible?!!!
SharePoint greets you with a typical error "Something Went Wrong ". Lets accept it gracefully and turn to our friend "Microsoft PowerShell"
$web.Update()
It's pretty simple. Check out your solution gallery. There you can find publishing site template in wsp format.