Wrapping HTML in ruby, why?
- 
 Hello! I haven't been programming for a while. Now I have been going through some other people's scripts for inspiration and education purposes. I notice several scripts is putting the HTML in the rubyscript. 
 And a few topics on this forum seems also to favour this behavior.
 Doing some searching on this forum I get the impression it has to do with set.file problems for Safari?I guess the question is, since I have been putting the JS, Jquery and HTML in separate files and folders will I benefit rewriting the HTML in the rb.file? I rather keep things like I have it right now, but if it's proven I will run into trouble later on I rather change it right away. 
 I do realize there is one short and one long answer to this question, and I'll appreciate any advice I'll get.Thanks/ Joel. 
- 
 I think as far as I remember there were issues with set_html(driven maybe knows more exactly what the issues were).
 If you have jQuery (+ other files...) it is certainly not a good idea to embed it inside ruby (it makes the ruby file long and ugly to read). If you just want a small single-file-plugin with very simple html, than it can be convenient to put it into the rb.
- 
 Aha, I see. So embedding HTML is more for convenience sake then. 
 I remember even over half a year ago there where issues on Safari, thought they whould have been fixed by now.Kind of the answer I was hoping for though, if I understood it correctly. Thank you. 
Advertisement

 
                             
                             
                             
                             
                             
                             
                            