Skip to content

Instantly share code, notes, and snippets.

Created January 19, 2010 15:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/281023 to your computer and use it in GitHub Desktop.
<script type="text/ruby">
def helloRuby
window.document.getElementById('output').innerHTML = "Hello World from Titanium using Ruby"
window.helloRuby = helloRuby
<body style="background-color:#1c1c1c;margin:0;color:#fff">
<div style="border-top:1px solid #404040">
<div style="padding:10px">
Welcome to Titanium
<div id="output">Click on a Button!</div>
<button onclick="helloRuby()">Hello Ruby!</button>
<?xml version='1.0' encoding='UTF-8'?>
<ti:app xmlns:ti=''>
<!-- These values are edited/maintained by Titanium Developer -->
<publisher>Joel Dezenzio</publisher>
<copyright>2010 by Joel Dezenzio</copyright>
<!-- Window Definition - these values can be edited -->
<chrome scrollbars="true">true</chrome>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment