slime-lang / slime

Minimalistic HTML templates for Elixir, inspired by Slim.
http://slime-lang.com
MIT License
371 stars 57 forks source link

Automatically self-close some tags #57

Closed henrik closed 8 years ago

henrik commented 9 years ago

With #50 we can explicitly ask for a self-closing tag.

Ruby Slim also automatically closes the usual suspects – see docs:

Note, that this is usually not necessary since the standard html tags (img, br, ...) are closed automatically.

We don't seem to do that currently, but it might be fairly easy to add on top of @vicmargar's work in #50.

List of self-closing tags: http://stackoverflow.com/questions/13915201/what-tags-in-html5-are-acknowledged-of-being-self-closing

doomspork commented 9 years ago

Sounds good to me. Seems like a pretty straightforward addition.