0

Please how do I add Ruby to html for more functionalities

20th Aug 2021, 12:37 PM
Elimihele Gods favour
Elimihele Gods favour - avatar
2 ответов
+ 2
Browsers only understand Javascript, you cannot run Ruby code in HTML. There are some ruby-to-js transpilers, eg. Opal, which can turn your ruby code into javascript, which then you can run in the browser. https://www.quora.com/Why-cant-Ruby-be-used-as-JavaScript-in-browsers
20th Aug 2021, 8:01 PM
Tibor Santa
Tibor Santa - avatar
+ 2
Elimihele Gods favour Learn about Ruby On Rails which is a Web Application Framework. You can add Ruby code with html code. https://guides.rubyonrails.org/getting_started.html
21st Aug 2021, 6:16 AM
A͢J
A͢J - avatar