ReferenceError when variable does not exist
rainerborene opened this issue · 1 comments
rainerborene commented
Hello, Stephenson
I'm getting the following exception when I try to compile a template function without any variables.
Uncaught ReferenceError: id is not defined
Suppose I have the following template:
<span data-id="<%= id %>"><%= content %></span>
And I run this with the function:
JST["template"]()
It won't work.
Using Rails 3.1.1 with Asset Pipeline.
rainerborene commented
Please, ignore this issue. It was my mistake.