pug-php / pug

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

Option to disable html minficiation #239

Closed sandrodz closed 4 years ago

sandrodz commented 4 years ago

Hi

I could not find option to disable html minification. Played with pretty but it did not do anything.

Screen Shot 2020-06-15 at 13 49 10
kylekatarnls commented 4 years ago

I ran this very basic code:

<?php

use Pug\Pug;

include 'vendor/autoload.php';

(new Pug(['pretty' => true]))->display('div: p: Hello');

echo "\n";

(new Pug(['pretty' => false]))->display('div: p: Hello');

And I get:

<div>
  <p><b>Hello</b></p>
</div>

<div><p><b>Hello</b></p></div>

Please provide:

If you follow the issue pattern we provide, it will helps us to help you.