Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
end

Then 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