Give HTML the ability to be scripted with Ruby by simply referencing a JavaScript file:

<script src=""

Or, if you want to develop without a network connection, or deploy IronRuby yourself, simply extract the re-distributable package and reference it:

<script type="text/javascript">
    window.DLR = {path: 'path/to/gestalt.latest'}
<script src="path/to/gestalt.latest/dlr.js" type="text/javascript">

Note: depending on the version is preferred. dlr-latest.js will always give you the latest version of IronRuby. You can also pick a specific version to ensure stability, like dlr-20100305.js.

And that's it! Now you can place Ruby script tags on the HTML page to script the HTML page. For example, here's handling a button click:

<input id="button" type="button" value="Say, Hello!" />
<script type="text/ruby">
  document.button.onclick do |s, e|
    window.Alert("Hello from Ruby!")

Vector-graphics can also be used; here's an example which loads a vector-graphics markup file in the XAML format and uses Ruby to start animations defined in the XAML file:

<script id="blinking_mushroom" type="application/xml+xaml" width="200" height="230"

<script class="blinking_mushroom" type="text/ruby">
  bm = xaml.blinking_mushroom

And that's it! Next see some Examples, Download things to your local machine, and learn more from the Documentation.