Skip to content

Instantly share code, notes, and snippets.

@elia
Created September 18, 2014 10:12
Show Gist options
  • Save elia/bf389b89e35618ad2221 to your computer and use it in GitHub Desktop.
Save elia/bf389b89e35618ad2221 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<script src="http://cdn.opalrb.org/opal/current/opal.min.js"></script>
<script src="http://cdn.opalrb.org/opal/current/native.min.js"></script>
<script src="http://cdn.opalrb.org/opal/current/opal-parser.min.js"></script>
</head>
<body>
<script type="text/ruby">
#<![CDATA[
puts 'Hello from the console!'
$$[:document].write %{
<!doctype html>
<html>
<head>
<style>body{font-family:sans-serif;font-weight:100;}</style>
</head>
<body>
<h1 id="opal_cdn_distribution">Opal CDN distribution</h1>
<h2 id="url_scheme">URL scheme</h2>
<pre><code>//cdn.opalrb.org/opal/&lt;VERSION&gt;/opal.js
//cdn.opalrb.org/opal/&lt;VERSION&gt;/opal.min.js
//cdn.opalrb.org/opal/&lt;VERSION&gt;/opal.min.js.gz
</code></pre>
<p>Where <code>&lt;VERSION&gt;</code> is the desired version number or <code>current</code>, examples:</p>
<pre><code>//cdn.opalrb.org/opal/0.6.2/opal.js
//cdn.opalrb.org/opal/0.5.5/date.min.js
//cdn.opalrb.org/opal/current/base64.min.js.gz
</code></pre>
<h2 id="license">License</h2>
<p>See <a href="http://opalrb.org">http://opalrb.org</a>.</p>
</body>
</html>
}
#]]>
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment