pug-php / pug

Pug template engine for PHP
https://www.phug-lang.com
MIT License
387 stars 42 forks source link

Class merge with &attributes(attributes) #213

Closed kylekatarnls closed 5 years ago

kylekatarnls commented 5 years ago

I will have to fix the following in order to make bemto project working pass its unit tests:

mixin b
  p&attributes(attributes)

mixin a
  +b.bar&attributes(attributes)

+a.foo

I expected to get:

<p class="bar foo"></p>

As in pugjs.

But I actually get:

<p class="foo"></p>

I will fix the formatter to align Pug-php on Pugjs behavior.

kylekatarnls commented 5 years ago

Fixed via https://github.com/phug-php/formatter/releases/tag/0.5.44