I think it's cleaner to split out the templates from the widget divs by adding them at the bottom of the file. This is a non-binding opinion though so feel free to leave it as is.