sstephenson/ruby-ejs

Problem with conditional JS inside <%- %>

vaixellx opened this issue · 1 comments

I have a problem when I try to use something like
<%- null_var || "some string" %>

in my .jst.ejs template, it evaluate as "null" || "some string" which always return "null" string

So it's work If I do <%- (null_var || "some string) %> or <%- "%s", null || "some string" %> it should be bug

Pleas fix this for clean code, Thanks :)

This behavior fixed in request #20