+ 1

Is it possible that Ruby can be embedded in HTML

I want to know that is it possible that we can embedd a Ruby file in html instead of Javascript

26th Mar 2018, 2:16 PM
Ayush kumar
Ayush kumar - avatar
1 Answer
+ 3
Yes it is. It's called ERB. Embedded ruby. index.html.erb You could maybe do that with other languages too I'm not sure. index.js.erb or index.php.erb. Let me know.
26th Mar 2018, 2:26 PM
Toni Isotalo
Toni Isotalo - avatar