isn't FlyDom plugin created for this purpose.. I have never used it, but i was always under that impression.
-GTG On 8/2/07, Josh Nathanson <[EMAIL PROTECTED]> wrote: > > >What are others doing to make sure that even small snippets of HTML > aren't creeping into their js files? Do you have >this in separate html > files that you import and then fill with data? > > Yes, I do this. If I am adding more than a couple of elements to the DOM, > I will create a blank html template, then use $.get and append the html to > the DOM. Then you can insert data, set attributes etc. as needed. This > does keep the API quite a bit cleaner. > > I think small snippets of html are ok to have in the JS code, such as just > adding a div or something like that. > > - Josh >