I do because the cached engine contains the template caching configuration and if I can't change that config then it's not going to rerender the view with the new content

J.

On Fri, Jul 19, 2013 at 3:44 PM, Caridy Patino <notifications@github.com>
wrote:

>> @@ -24,10 +24,11 @@ YUI.add('mojito-view-renderer', function (Y) {
>>       */
>>      function Renderer(type, options) {
>>          this._type = type || 'hb';
>> -        this._options = options;
>> -        if (!cache[this._type]) {
>> -             // caching renderer instance
>> -            cache[this._type] = new (Y.mojito.addons.viewEngines[this._type])(options);
>> +        this._options = options || {};
>> +
>> +        if (!cache[this._type] || this._options.cacheTemplates === false) {
> this cache is not the template cache, but the engine cache. I don't think you need this.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/yahoo/mojito/pull/1200/files#r5304470