Cranium is a minimalist MVC implementation I wrote to demonstrate how a developer might write their own MVC library within 20 minutes. The purpose of this exercise is to better appreciate what solutions like Backbone.js provide you out of the box.
You may use jQuery and Underscore (or lo-dash) for your implementation.
Note: This code is released strictly for educational purposes and should not be used in production. If you are searching for an MV* framework, TodoMVC.com may help with your selection process.
Strictly speaking, at line 11:
should be
as
document.querySelector
only select's the first element whereas querySelectorAll, jQuery and Zepto returns all found elements.I know I'm being pedantic...