// initialize the application
var app = Sammy('#main', function() {
  // include a plugin

  // define a 'route'
  this.get('#/', function() {
    // load some data
        // render a template
        // swap the DOM with the new content

// start the application

RESTful Evented JavaScript

  1. SMALL

    Sammy's core is only 16K compressed and 5.2K compressed and gzipped


    Sammy is built on a system of plugins and adapters . Only include the code you need. It's also easy to extract your own code into reusable plugins.

  3. CLEAN

    The entire API was designed to be easy to understand and read. Sammy tries to encourage good encapsulation and application design.

  4. FUN

    What's the real point of development if its not enjoyable. Sammy tries to follow the MATZ approach. It is optimized for developer happiness.