You'll have plenty of time to vent personally about your work grievances as you leave, but really, you stand to gain nothing by putting negativity into your resignation letter. And unless you're leaving the state and your current industry, you always run the risk of running into the same people later on. So you're far better off taking the high road and making sure your exit is a classy one.
The Thank You. Next, it's always a good idea to thank your employer for the opportunity, describing some of the key things you've enjoyed and learned on the job. And yes, this is true even if you're thrilled to be leaving. Remember__you may need these people for a reference down the line, and leaving things on a good note will leave a lasting (positive) impression.