Use extract_method to reduce #render complexity
Allow reset options to set scope and format
Add set_locals aand set_source methods
Use guard clause
Merge pull request #545 from bhicks/render-complexity

Render complexity