5 ms·
Nobody is stopping the Ruby devs from writing a Ruby interpreter for the browser. Here is the recipe: 1) invent a type that the browser current doesn't underst
by DjDarkman 16y ago
Nobody is stopping the Ruby devs from writing a Ruby interpreter for the browser. Here is the recipe:
1) invent a type that the browser current doesn't understand like: application/ruby-script
2) write a parser for it in JavaScript
3) Profit??
It would look like this:
<script type="application/ruby-script">
//your browser will ignore this but your parser won't
//sorry I don't do ruby to come up with an example
</script>
<script src="yourawsomerubyparser.js">