Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamiewinder/systemjs-plugins
A few useful SystemJS loader plugins for loading various resources
https://github.com/jamiewinder/systemjs-plugins
Last synced: about 1 month ago
JSON representation
A few useful SystemJS loader plugins for loading various resources
- Host: GitHub
- URL: https://github.com/jamiewinder/systemjs-plugins
- Owner: jamiewinder
- License: mit
- Created: 2015-01-17T23:02:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T10:21:17.000Z (almost 7 years ago)
- Last Synced: 2024-10-15T13:37:16.647Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# systemjs-plugins
A few useful SystemJS loader plugins for loading various resources## hbs
Basic Handlebars template loading, exports the template function
##### test1.hbs
```
Hello, {{name}}!
```
##### index1.js
```
var hbs = require("./test1.hbs!");
alert(hbs({name: "World"}));
```## hbss
Loads a number of Handlebars templates from a HTML file, exports a hash of template functions keyed by 'id'.
##### test2.html
```Hello, {{name}}
Goodbye, {{name}}
```
##### index2.js
```
var hbs = require("./test2.html!hbss");
alert(hbs.hello({name: "World"}));
alert(hbs.goodbye({name: "World"}));
```## css-inline
Loads CSS as text and inserts it as a `` rather than referencing in a `<link>`.