mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
Documentation request in #599
This commit is contained in:
@@ -1484,10 +1484,11 @@ var othello = NYPL.create({
|
||||
<p id="Router-extend">
|
||||
<b class="header">extend</b><code>Backbone.Router.extend(properties, [classProperties])</code>
|
||||
<br />
|
||||
Get started by creating a custom router class. You'll
|
||||
want to define actions that are triggered when certain URL fragments are
|
||||
Get started by creating a custom router class. Define actions that are
|
||||
triggered when certain URL fragments are
|
||||
matched, and provide a <a href="#Router-routes">routes</a> hash
|
||||
that pairs routes to actions.
|
||||
that pairs routes to actions. Note that you'll want to avoid using a
|
||||
leading slash in your route definitions:
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
|
||||
Reference in New Issue
Block a user