In my backbone.js app I want to be able to fire a simple link.
<a href=/logout">Log Out</a>
Now I use it with router like this:
logout: function() {
window.location = '/logout';
}
Is it possible to call this link straight from the html, just like a normal link? As a notice, the router has pushState enabled.