Sirius.js
a light weight javascript MVC framework, written with coffeescript. It's give a simple integration with current javascript frameworks.
Backbone.js
or Ember.Data
or use javascript objects as you models.jQuery
or prototypejs
adapters.npm install sirius
or download manually sirius.min.js and jquery_adapter.min.js or prototype_js_adapter.min.js from repo.
MyController = action: (param) -> # ... run: () -> # ... after_run: () -> # run after `run` method guard_event: (event) -> if condition true else false event_action: (event, id) -> # ...
routes = { "application:run" : controller: MyController, action: "action" "#/:title" : controller: MyController, action: "run" "click #my-element" : controller: MyController, action: "event_action", guard: "guard_event", data: "id" }
class Person extends Sirius.BaseModel @attrs: ["id", "name", {"age": 21}] @guid_for: "id" @form_name: "#my-person-form"
Sirius.Application({routes: routes})