defunkt/pystache — Issue #59: Rename Template class to Renderer class
Author: cjerdonek
Created: 2011-12-22 02:53:27+00:00
State: open

The Template class is really more of a "rendering" class for storing all of the options on how to render a template string.

The attribute `self.template` is only used once in the class, and that's in the `Template.render()` method when it passes `self.template` to the `RenderEngine`. So why not just pass the template string directly to `render()`?

This will make the API much simpler going forward. For example, this will let us eventually pass `View` instances to `render()` (in addition to template strings), so that we won't have to repeat all of the rendering options a second time in the View class.