切换到当前目录,执行 tmod 命令
$ cd tmodjs/test/tpl $ tmod
如果终端返回如下信息,表示模板已经编译完成
./copyright.html √ ./index.html √ ./public/footer.html √ ./public/header.html √ ./public/logo.html √
模板经过编译后,支持普通脚本引入与 SeaJS 、RequireJS 等模块管理器调用。
运行示例:
$ node node.js