-
Kyle Simpson
3.97
Description:
Most web applications take UI architecture for granted, simply using out-of-the-box offerings from the framework of choice without much thought. This often yields far too complicated templating, data exchange (Ajax), URL routing, validation, etc. CVC (Client-View-Controller) is an alternative, deconstructed, framework-independent approach to building/delivering performant, maintainable web UI.
Client
Each component is a "client" of every other component -- highly module, portable, and platform/framework agnostic.
View
Templating engine, written in JavaScript (so it can run either on server or in browser), uses HTML-based templates and accepts simple JSON data.
Controller
URL routing, data validation, etc The controller modules are also in JavaScript and are the glue between all the pieces, to transfer the data (JSON) and facilitate the "clients" talking to each other.
Comments on this Talk
Kyle Simpson,
10 Feb 08:29 PM

Demo: http://test.getify.com/handlebar/demo1/
Git: http://github.com/getify/HandlebarJS