jeromegn / slang

Slim-inspired templating language for Crystal
MIT License
236 stars 30 forks source link

Checked attribute? #23

Closed crisward closed 7 years ago

crisward commented 7 years ago

Some attributes need to be removed if set to false

input name="active" checked=false

should render to

<input name="active" />

This doesn't seem to happen. Any ideas / work arounds for this?

crisward commented 7 years ago

My current work around is...

- if active
     input type="checkbox" name="active" checked="checked"
- else
     input type="checkbox" name="active"
jeromegn commented 7 years ago

Released as part of 1.6.1, thanks for pointing this out!

Any attribute =true will be present, not value. Any attribute =false won't be present.