zendesk/curly — pull request #119 by ncalca (2014-11-17 23:29:40+00:00)
Title: Cache compiled templates

Currently Curly recompiles (i.e., generates the rendering ruby code) each time `Curly::TemplateHandler.call` is invoked.
In pages/partials where the same curly partial is rendered many times (i.e., collections) this can be avoided and the same compiled template can be reused.

This PR adds a cache for compiled templates such that when a template has already been compiled the compilation step is skipped and the cached result is returned.