DISCLAIMER: In very early development! Do not use ... contribute.
The test are running against custom rules, that are intended to fail. The intention is to use a responder adapter to tie into a DDR (custom or 3rd party listed below)
Responsive/Adaptive utilities for your Node.js Application The library provides the following:
API wrapper for working with Device Description Repositories such as:
Redis Data cache and simple Data API
Device Profile Mappings to Jade templates
Profile-specific Jade mixins
Intelligent SPA application support
Install the module with:
npm install responder or add to your package.json
var responder = ;responderprofile; // "smartPhone"responderproduct'brand_name'; // "Nokia"responderproduct'has_qwerty_keyboard'; // "false"responderproduct'mobile_browser'; // "Opera"responder // "html5"responder; // "true"
$ nodeunit test
The tests should be failing, until you implemnt a DDR or custom rules.
$ cd <public/js directory of your app>$ git clone git://github.com/jessecravens/responder-client.git
Add a script reference in your application pages. Most likely, your highest-level template.
Unlike the desktop web, there is a significant amount of fragmentation on the mobile web. Markup can be WML, HTML, HDML, XHTML, or Mobile Profile. In addition, unlike the desktop web, a mobile web browser will vary on screen size, ability to support client side scripting, ability to support various image formats, and even color. Because the markup is generally sent directly to the phone, there is no opportunity for a central server to “fix” or adapt to browser limitations or defects. Furthermore, software updates for mobile browsers are rare.
ResponderJS helps bridge this gap with a simple to use API.
MITE Device Anywhere: http://mite.keynote.com/download.php
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2012 Jesse Cravens
Licensed under the MIT license.