robb / Swim

A DSL for writing HTML in Swift
310 stars 9 forks source link

Add empty tags and render non-empty tags correctly #4

Closed robb closed 4 years ago

robb commented 4 years ago

This fixes a case where script(src: "test.js") would render as <script src="test.js"/> which is not valid. It also makes br { "test" } a compiler error now.