Object JavaScript – Loading File Templates for Knockout Asynchronously Using koExternalTemplateEngine, Infuser
In the previous post, Using Infuser to Asynchronously Load Your Templates, we took a detour into Infuser and how it can be used to call template code. But what about calling Knockout templates?
You will probably want to put a template into a separate file so you can reuse it across various pages on your site.
koExternalTemplateEngine is a JavaScript library built on top of Infuser for you to load templates asynchronously from a remote resource. It currently supports both native and jquery templates.
And you’ll see how you can use Infuser to configure your Knockout Template Engine.