{"version":"1.0","type":"rich","title":"Gist 7021205","description":"Cranium, a minimalist MVC library, demonstrates a model-view-controller pattern where a model’s counter state updates a view’s rendered HTML through custom events and Underscore templating. The code shows two controller-driven interactions—an increment button and an alert button—plus a separate todo model with checkbox toggling that re-renders the view. Using Cranium’s `Model.set`, `View.observe`, and `Controller` event bindings, it highlights how user actions trigger model changes, which in turn notify the view to update the DOM. The example also exercises Underscore utilities like `_.pluck` and `_.shuffle` on model collections.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-7021205?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}