So, I learned a very valuable lesson tonight. Have a backup of your template so you can restore it if you fall asleep editing it. And secondly, always do a preview no matter how small the template changes in case you did something stupid like delete a bunch of stuff.