Skip to content

Commit

Permalink
adding references to the repo exploring the mobile router plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Dec 19, 2011
1 parent dabf010 commit 3baf59e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -52,6 +52,8 @@ $.mobile.changePage( url , { transition: effect}, reverse, changeHash );

In the above sample, <code>url</code> can refer to a URL or a hash identifier to navigate to, <code>effect</code> is simply the transition effect to animate the page in with and the final two parameters decide the direction for the transition (<code>reverse</code>) and whether or not the hash in the address bar should be updated (<code>changeHash</code>). With respect to the latter, I typically set this to false to avoid managing two sources for hash updates, but feel free to set this to true if you're comfortable doing so.

<strong>Note:</strong> For some parallel work being done to explore how well the jQuery Mobile Router plugin works with Backbone, you may be interested in checking out https://github.com/Filirom1/jquery-mobile-backbone-requirejs.

###External templates using Require.js

Moving your [Underscore/Mustache/Handlebars] templates to external files is actually quite straight-forward. As this application makes use of Require.js, I'll discuss how to implement external templates using this specific script loader.
Expand Down

0 comments on commit 3baf59e

Please sign in to comment.