maqetta/maqetta — comment on commit ff0b47def545b449bc0da98c370980955b1b3b15
File: davinci.dojo_1_7/WebContent/metadata/dijit/form/HorizontalSliderInput.js line 378
By jhpedemonte:

Yes, definitely. **HTML like this belongs in an HTML file**. It's even in our [Development Guide](https://github.com/maqetta/maqetta/wiki/Development-Guide)!

And the **CSS code should go into a CSS file**. It can then be referenced from in a `` or imported from JS. Either way, if it's used more than once, subsequent calls just come from cache or the browser might be smart enough to ignore it if it's already been loaded (not sure about that, though).

Thirdly, long chains of string concatenation are inefficient. Better to put the strings in an array and the call `join()`. This is also in the Dev Guide (go [here](http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml) and search for "Use join() to Build Strings").