-
-
Save elia/bf389b89e35618ad2221 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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/<VERSION>/opal.js | |
//cdn.opalrb.org/opal/<VERSION>/opal.min.js | |
//cdn.opalrb.org/opal/<VERSION>/opal.min.js.gz | |
</code></pre> | |
<p>Where <code><VERSION></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