Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webmatze/jqtouch-4-ruby
A ruby DSL for creating simple jQTouch mobile applications
https://github.com/webmatze/jqtouch-4-ruby
Last synced: 9 days ago
JSON representation
A ruby DSL for creating simple jQTouch mobile applications
- Host: GitHub
- URL: https://github.com/webmatze/jqtouch-4-ruby
- Owner: webmatze
- Created: 2011-07-21T18:08:49.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-22T15:20:42.000Z (over 13 years ago)
- Last Synced: 2024-11-11T10:51:10.477Z (2 months ago)
- Language: JavaScript
- Homepage: http://5k.webmatze.de
- Size: 221 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
jQTouch 4 Ruby
=====================Introduction
------------jQTouch for Ruby is a ruby DSL to easy create jQTouch mobile applications.
Requirements
------------- gem install builder (http://rubygems.org/gems/builder)
- jQuery Library (http://jquery.com/)
- jQTouch Javascript Library (http://jqtouch.com/)Example
-------Create a ruby file 'myfirstapp.rb' and add the following code:
require 'jqtouch'
JQTouch.app "My first App" do
page :index do
toolbar "Index" do
button :about, "about"
end
list do
item "Info", "more info", :info, :arrow
item "About", "this site", :about, :arrow
end
end
page :about do
toolbar "About" do
button :back, "Back"
end
info "
About this app
Here you can write your own HTML content
"
end
page :info do
toolbar "Info" do
button :back, "Back"
end
info "
Info Page
Write something about you!
"
end
endThen run this file and safe the output into an html file:
$ ruby myfirstapp.rb > myfirstapp.htm
Now open the created html file in a browser or on your mobile phone.Have fun :)
Copyright
---------2011 by Mathias Karstädt