Breaking up is hard to do, but pouring your heart out on paper is rather awkward. There is really no need for any other information in your resignation letter (including a reason __ which is completely optional). No effusive template and formatting effort is required. This is not a letter that is going to be hanging on anyone's wall, and it probably won't even be filed away!
Prepare for It. This one is easy. All you have to do is smile and say "Thank you so much for your support. I've enjoyed my time here and I've learned a lot from you. Let me know what I can do to make the transition easier." Are you always going to get reaction number five? Probably not. But if you look for the signs, you can likely anticipate your boss' response, go into the conversation prepared, and come out stronger on the other side. Then, you can breathe a sign of relief and start looking forward to starting your new position.