hamlphp / HamlPHP

Yet another Haml to HTML converter written in PHP.

Home Page:http://hamlphp.github.com/HamlPHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html5 output is not html5?

doits opened this issue · comments

I am using Config::$format = 'html5';, but still get things like:

 <input <?php atts(array('required' => 'required')); ?>></input>

for

%input{:required => true}

It should instead output

<input <?php atts(array('required' => true)); ?>>,

and the atts helper should be changed to:

if($value === true)
{
    $str .= " $name";
}

The atts-helper could also depend on Config::$format, but I think it should function for itself.

superseded by #25