Sexy patch and commit! :)
We should refactor some Mouchak code though.
And, so map is a part of Mouchak types now.

But how can we have developers add new types to Mouchak, without really editing the Mouchak code? I was thinking that would be super cool. So, say you want to add a jquery carousel support in Mouchak, or say you created a RSS reader and want to integrate into Mouchak. Instead of adding your code into Mouchak code base, we can give APIs to add a model and a view (or something like that). So, if you have a generic JS/CSS just pass it to Mouchak API and you have extended Mouchak types. How does it sound?

Sexy patch and commit! :)
We should refactor some Mouchak code though.
And, so map is a part of Mouchak types now.

But how can we have developers add new types to Mouchak, without really editing the Mouchak code? I was thinking that would be super cool. So, say you want to add a jquery carousel support in Mouchak, or say you created a RSS reader and want to integrate into Mouchak. Instead of adding your code into Mouchak code base, we can give APIs to add a model and a view (or something like that). So, if you have a generic JS/CSS just pass it to Mouchak API and you have extended Mouchak types. How does it sound?

Yes we should have an API like new M.Model() which is a custom model type. I think that would be very good to have.