A Sea.js plugin for loading text resources such as template, json etc
Install with spm:
$ spm install seajs/seajs-text
<script src="path/to/sea.js"></script>
<script src="path/to/seajs-text.js"></script>
<script>
define("main", function(require) {
// You can require `.tpl` file directly
var tpl = require("./data.tpl")
})
</script>
For more details please visit 中文文档