O'Reilly logo

TypeScript: Modern JavaScript Development by Ivo Gabe de Wolff, Vilic Vane, Remo H. Jansen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing an MVC framework from scratch

Now that we have a good idea about the common components of an MV* application framework, we are going to try to implement our own framework from scratch.

Note

The framework that we are about to develop has not been designed to be used in a real professional environment. Real MV* frameworks have thousands of features and have been under intense development for months and even years before becoming stable.

This framework has been developed not to be the most efficient or the most maintainable MV* framework available, but to be a good learning resource.

Our application will feature controllers, templates, views, and models as well as a router, a mediator, and a dispatcher. Let's take a look at the role of each ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required