The Knockout.js External Template Engine extends Knockout.js to allow you to load templates asynchronously from a remote resource. It currently supports both native and jquery templates. Special thanks to Ryan Niemeyer for the assistance in getting jquery templates working in this version of the plugin.
Install-Package Knockout.js_External_Template_Engine -Version 2.0.5
dotnet add package Knockout.js_External_Template_Engine --version 2.0.5
<PackageReference Include="Knockout.js_External_Template_Engine" Version="2.0.5" />
paket add Knockout.js_External_Template_Engine --version 2.0.5
#r "nuget: Knockout.js_External_Template_Engine, 2.0.5"
NOTE: The Knockout.js External Template Engine depends on "TrafficCop" and "infuser". Both TrafficCop and infuser will pull down standard js libs (wrapped in an immediately invoked function expression) and also AMD module versions. If you do not need the AMD/require.js version of this plugin, simply include TrafficCop, infuser and koExternalTemplateEngine.js (or the .min.js version) in your project - OR include koExternalTemplateEngine_all.js, which is combined build of TrafficCop, infuser and this plugin. If you are using the AMD module version, you will need to include koExternalTemplateEngine-amd.js (or the .min.js version), along with the AMD builds of TrafficCop and infuser. It will be ideal if you set up named modules in your require.config using the names "TrafficCop", "infuser" and "koext" - case sensitive (see the example/amd folder for this plugin on github). The AMD version of this plugin requires Knockout.js 2.1 or later.
IF ALL ELSE FAILS AND YOU'RE NOT SURE WHAT TO DO: Delete everything this nuget installs EXCEPT for the koExternalTemplateEngine_all.js file. :-)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Knockout.js_External_Template_Engine:
[Meta-Package] This is my favorite set of libraries and/or assemblies to start a new general-purpose site in MVC 4 with. It covers server-side optimizations like Bundling, and client-side tools like knockout and jQuery.
This package is not used by any popular GitHub repositories.