Another JS Framework
I started working on Sweet.js about a month ago. It is inspired by Backbone.js. Sweet.js supports HTML5 states, so that you don’t have to go through work arounds like these. Sweet.js is not a MVC framework, but it has a views similar to Backbone.js, which supports inheritance without affecting events and initializations of super classes. And it’s written in Coffeescript.
Router
class Router extends Sweet.Router
@routes You can add more routes from sub classes
'': 'home'
'search/:what': 'results'
home: ->
View.home()
results: (what) ->
console.log @getState() state
View.results(what)
router = new Router()
router.start pushState: true
Emulate browser back button
router.back()
Whether we can go back without leaving the web app
router.canBack()
Views
A generic form class.
class Form extends Sweet.View
@events
'click .cancel': 'cancel'
'click .submit': 'submit'
...