AnnVoV / seajs-text

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seajs-text

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

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

License:MIT License


Languages

Language:JavaScript 92.5%Language:HTML 5.1%Language:Makefile 1.7%Language:Smarty 0.5%Language:Handlebars 0.2%