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

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

@boatpj

Description

@boatpj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions