BorisMoore/jsrender — Issue #83: Expected identifier - IE8 Compilation Issue
Author: KaineVarley
Created: 2012-03-01 22:11:36+00:00
State: open

Hi,

When the following template expression is processed, the result is an "Expected identifier" error on line 552.

Cause of error:
$.template("PlayerContentTemplate", "<div id=\"{{=id}}\"><div class=\"{{=class}}\">{{=content!}}</div></div>");

Line 552:
ret = new Function( "$data, $view", code.slice( 0, -1) + ";return result;\n\n}catch(e){return views.err(e);}" );

This works fine with IE9, the latest FF and Chrome. To get into IE8 mode using IE9, simply press F12 and select IE8 from the "Browser Mode:" top menu, located on the right hand side of the developer tool window.

Hope you're able to look into this soon, or provide a work around.

Thanks for a great plug-in.

Kaine