8000 GitHub - Liangyongxu/seajs-text: A Sea.js plugin for loading text resources such as template, json etc
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Liangyongxu/seajs-text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seajs-text

A Sea.js plugin for loading text resources such as template, json etc

seajs-text@1.0.3+ is compatible with seajs@2.2.0+ !

Install

Install with spm:

$ spm install seajs/seajs-text

Usage

<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 中文文档

About

A Sea.js plugin for loading text resources such as template, json etc

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0