realistschuckle / gohaml

An implementation of the popular XHTML Abstraction Markup Language using the Go language.
MIT License
95 stars 13 forks source link

Issue with the <script> tag #16

Open zog opened 9 years ago

zog commented 9 years ago

Hi,

I'm trying to use your awesome work in combination with Revel, and I face the following issue: when I try to include a script tag, the generated HTML use the autoclose syntax <script src="foo" />, which is invalid. The only workaround I found so far is to put some dummy content in the tag, to enforce the closing tag. Is there any way I can tell the parser to use the "2 tags" syntax ?