A Sencha Touch template, using Sinatra for simple server side scripting.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
templates
theming
views
.gitignore
Gemfile
Gemfile.lock
README.md
Termfile
application.rb
config.ru

README.md

Senchatra is a simple Sinatra application that takes some of the drudge work out of working with Sencha Touch. It provides these conveniences:

  • contents of .html files in the templates directory are inserted into the index.html file, wrapped in a <textarea> tag with display:none;.
  • <script> tags are auto-generated for all .js files in the public/app directory.

Setup

If you are on a mac and have terminitor installed, just cd to this project directory, and run the following:

terminitor setup
terminitor start

The terminitor setup command runs:

bundle install

And terminitor start will open a couple of tabs, launching the Sinatra server at http://localhost:4567/, and watching the theming/senchatra.scss file for changes, which will be automatically compiled to public/stylesheets/senchatra.css. This is equivalent to the following:

# Open a new tab and run:
ruby application.rb

# Open another new tab and run:
cd theming
compass watch

Deploying to heroku

Create a heroku app by running:

gem install heroku
heroku create name-of-your-app

Then you can deploy your Sencha Touch app to Heroku by running:

git push heroku master

The output from that command will show you the URL where your app lives.