Skip to content

Multiple conditions not working with expressionLanguage => 'js' option. #216

Description

@narirou

Hello,

I encountered an issue with the following code with rendering option expressionLanguage => 'js':

doctype html
html
  body
    if falsy || !falsy || !falsy
      p 1
    else
      p 2

with data:

array(
  'falsy' => false
)

I expected to get:

<!DOCTYPE html>
<html>
  <body>
    <p>1</p>
  </body>
</html>

But I actually get:

<!DOCTYPE html>
<html>
  <body>
    <p>2</p>
  </body>
</html>

js-phpize-phug 2.x will occer this error, but 1.x not occerred.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions