pug-php / pug

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

Adding a class using the class attributes appends the class without separation. #62

Closed esiao closed 8 years ago

esiao commented 8 years ago

Simple issue fixable on user side but seems like a missing feature / bug to me.

Taking this code

- $classes = 'MyClasss'

.MyInitialClass(class=$classes)

It returns

<div class="MyInitialClassMyClass"></div>

Expected behaviour

<div class="MyInitialClass MyClass"></div>

Adding a space in my class fixes it but here the example is simplified, I use arrays most of the time and need to add a space to the first entry.

kylekatarnls commented 8 years ago

Thanks for report, not noticed this regression, this will be my top priority.

kylekatarnls commented 8 years ago

Merged in 2.4.1