Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Problem with conditional JS inside <%- %> #15

Open
vaixellx opened this issue Jun 10, 2013 · 1 comment
Open

Problem with conditional JS inside <%- %> #15

vaixellx opened this issue Jun 10, 2013 · 1 comment

Comments

@vaixellx
Copy link

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 :)

@knoxknox
Copy link

This behavior fixed in request #20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants