
It is nice to build html using regular html tags, instead of building up dom structures in script. however, there is no good way to embed html in a javascript file. the best that can be done is using a string of html, but that can be hard to manage, particularly for multi-line html.
the text.js amd loader plugin can help with this issue. it will automatically be loaded if the text! prefix is used for a dependency.