Adjusting the close tag to be dependent on content.

@eleith PTAL

the end tag should depend on whether or not the tag is going to have content. if no content, then its going to be `< blah blah />` if content, then its going ot be `<blah blah></blah blah>`