Updating the template engine

Unfortunately, the ExternalTemplateEngine we have used until now is not AMD compatible. This is why you should use other solutions. There is a KnockoutJS extension called amd-helpers. You can download it from https://github.com/rniemeyer/knockout-amd-helpers. Ryan Niemeyer is the author of this extension. He is a very famous Knockout developer and has a large following in the Knockout community. He has a blog called Knockmeout (http://knockmeout.net) which has a large number of articles about Knockout and good examples of how the amd-helpers library should be used. In this book, we are just going to use the template engine. But this extension has many other features.

RequireJS just loads JavaScript files natively. To ...

Get KnockoutJS Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.