Skip to content

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

@narirou

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!

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