Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 492 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 492 Bytes

Does not currently support SystemJS 1.0+. PR's welcome

text

SystemJS's text loading plugin. Text is loaded from the file into the variable as a string.

Installing

For SystemJS use, locate text.js in the application, and then locate it with map configuration:

System.config({
  map: {
    text: 'path/to/text.js'
  }
});

For installing with jspm, run jspm install text.

Basic Use

import myText from './mytext.html!text';