Moving template lookup functions into closure to avoid unnecessary lookups if the cached copy is available.
Moving template lookup functions into closure to avoid unnecessary lookups if the cached copy is available.

obeattie/pylons,obeattie/pylons