An open API service indexing awesome lists of open source software.

https://github.com/one-com/systemjs-plugin-ko-tpl

SystemJS plugin for loading Knockout.js Templates
https://github.com/one-com/systemjs-plugin-ko-tpl

Last synced: about 2 months ago
JSON representation

SystemJS plugin for loading Knockout.js Templates

Awesome Lists containing this project

README

        

# Knockout template loader plugin for SystemJS

[![NPM version](https://badge.fury.io/js/systemjs-plugin-ko-tpl.svg)](http://badge.fury.io/js/systemjs-plugin-ko-tpl)
[![Build Status](https://travis-ci.org/One-com/systemjs-plugin-ko-tpl.svg?branch=feature%2Ftravis)](https://travis-ci.org/One-com/systemjs-plugin-ko-tpl)

Will load templates into the document as script tags with id's corresponding to the
name of the file.

## Installing

For SystemJS use, locate the plugin file in the application, and then locate it with map configuration:

```javascript
System.config({
map: {
tpl: 'path/to/knockout-tpl.js'
}
});
```

## Basic Use

```javascript
import './template.ko!tpl';
```