tags: Ruby, Ruby on Rails date: 2012-03-20 21:00:00.000000000Z ##Writting inline HTML output with Javascript, fuuuuu Have you ever used Javascript templates? No? Let’s write an example. Imagine if you have a function that receives some data in json format and you should add this data in a human format to the html body of the application. function renderData(data) { output = "<li class='"+ data.cla