Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and cleanup a bit partial renderer #6293

Merged

Commits on May 13, 2012

  1. Improve and cleanup a bit partial renderer

    * Remove template assignment: there is no need for this assignment,
      given we are rendering a collection with possibly different templates,
      and a second call to render (with the same instance) would behave
      differently if the template is set.
    * Remove segments array in favor of Array#map
    * Use local vars whenever possible
    * Cache local template keys, remove defaults from find_template
    carlosantoniodasilva committed May 13, 2012
    1
    Copy the full SHA
    700c583 View commit details
    Browse the repository at this point in the history