-
Book Overview & Buying
-
Table Of Contents
Mastering JavaScript Single Page Application Development
By :
Maintaining the view on the frontend of your application goes a long way toward keeping it server-side agnostic. Even if you are using a MVC framework underneath to serve REST endpoints for your application, keeping the view templates and logic on the frontend will ensure that you can more easily swap out the MVC backend in the future without significantly altering the logical and architectural structure of your application. JavaScript templating engines provide an effective way to manage view templates entirely on the frontend.
There are many open source JavaScript templating engines available. Next, we will cover the basics of some of the more popular ones:
Underscore.js
Mustache.js
Handlebars.js
Pure.js
Pug
EJS