Sammy.next is imminent. Looking for feedback.

0 views
Skip to first unread message

Aaron Quint

unread,
Sep 11, 2009, 9:21:41 AM9/11/09
to sam...@googlegroups.com
Hey Everyone

I've been working a lot on Sammy over the past couple weeks and have
been refactoring/changing/adding a lot of things.
This is all happening in the /next branch, here:
http://github.com/quirkey/sammy/tree/next

I would love peoples feedback/suggestions/bug reports before I push it
live. You can see the git log for a full list of changes (some still
need documentation), but here are the major ones:

- Plugins/Middleware (cant decide on what to call it yet). The main method is
#use which takes a variable number of arguments. The only required
argument is a function() that behaves just like a Sammy.Application
function and is evaluated in the same context. The idea is you can
create any number of plugins that are just app functions that can be
packaged seperately and 'used' in any app you want:

var MyPlugin = function() {
this.helpers({
myhelper: function(something) {
return "I helped " + something;
}
});
};

$.sammy(function() {
this.use(MyPlugin);
/// I now have access to myhelper() in my routes.
});

Trivial example, theres a better one in the tests and more on the way.
- Logging has been completely refactored and moved around
- Refactored out jresig's Class implementation.

Thanks! I'm also speaking all about Sammy this weekend at jQuery Conf
in Boston, so if you're attending, please dont be shy.
--AQ

Aaron Quint
http://www.quirkey.com

Reply all
Reply to author
Forward
0 new messages