This template is for static sites and phonegap apps development.
Using haml, sass, haml_coffee_assets (.hamlc), coffeescript.
Write and test your app with Middleman in development, then build static site and phonegap app for any mobile platform.
--
Development enviroment runs with Middleman โ Sinatra-based app that generates static websites.
bundle install
first.
bundle exec middleman
starts a server on 0.0.0.0:4567
(livereload
included)*.
bundle exec middleman build
builds a static site in www
folder
(configurable).
Install livereload browser extensions
Middleman uses front matter
for accessing data stored in yml
and
json
files.
models
folder contains sample ruby models. They are unused currently,
but feel free to use them if you need.
For example, data is stored in data
folder in .yml files.
Access data in templates with = data.yml_file.key...
objects, like = data.projects.first.title
sudo npm install -g phonegap
sudo npm install -g ios-sim
phonegap run ios
runs your app in device or simulator
You can use any platform (need sdk installed).
phonegap build ios
creates a build