Skip to content

Instantly share code, notes, and snippets.

@msroot
Created January 10, 2016 06:54
Show Gist options
  • Select an option

  • Save msroot/e86c5c3bfc526d3e49fb to your computer and use it in GitHub Desktop.

Select an option

Save msroot/e86c5c3bfc526d3e49fb to your computer and use it in GitHub Desktop.
parsing ruby with javascript (opal) text/ruby
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://cdn.opalrb.org/opal/current/opal.js"></script>
<script src="http://cdn.opalrb.org/opal/current/opal-parser.js"></script>
<script type="text/javascript">Opal.load('opal-parser')</script>
<script type="text/ruby">
%w[a b c ].map{|el| puts el}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment