sinatra/sinatra — pull request #825 by cjlwired (2014-01-13 03:55:30+00:00)
Title: Conslidate template rendering methods.

Was using CodeClimate with my own Sinatra application, and happened to stumble upon Sinatra's CodeClimate analysis. I saw the following there:

---

![sinatra_duplication_codeclimate](https://f.cloud.github.com/assets/3589911/1897955/977811b0-7c04-11e3-8f2f-f92a57e4103b.png)

---

This pull request will eliminate those two duplication issues from the code base by:

- Placing relevant methods together and defined via `define_method`.
- Re-ordering methods within the module based on what they were rendering.

Re-ran the full, built-in test suite via `rake test` and had all tests pass [1050 / 1050].