Hello, it seems like <%= syntax doesn't work well with Backbone models, when a model is used as template context. For example:
<%= @get("foo") %>
is compiled to:
this.escape(this.get("foo"))
What's wrong with this? A model has an escape() method, which takes attribute name as a single argument, and returns its escaped value. This is obviously not what eco is expecting.
Maybe there's a way to disable this implicit escape() lookup?
Hello, it seems like
<%=
syntax doesn't work well with Backbone models, when a model is used as template context. For example:is compiled to:
What's wrong with this? A model has an
escape()
method, which takes attribute name as a single argument, and returns its escaped value. This is obviously not whateco
is expecting.Maybe there's a way to disable this implicit
escape()
lookup?