I don't use middleman anymore and neither should you. Go checkout gulp or grunt.
Starter project for phonegap that uses middleman as a build system for compiling preprocessed HTML, CSS, and JS.
- Slim [for html]
- SASS [for css]
- CoffeeScript [for js]
- Clone or fork the repository
bundle
middleman server
- Make changes in the src directory
phonegap run [platform]
- callsmiddleman build
for you
- Find and install the packages you need...
$ bower search PACKAGE_NAME
$ bower install ACTUAL_PACKAGE_NAME -S
- Include the assets in your js/css files (paths relative to the root 'bower' directory )
#=require 'folder/file'
- for js files
@import 'folder/file'
- for css files