浏览代码

Updated the jst test.

dev-tmpl
Bryan Miller 6 年前
父节点
当前提交
8a4da0cf9a
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. +9
    -2
      jst/test.js

+ 9
- 2
jst/test.js 查看文件



var T = require("./jst.js"); var T = require("./jst.js");


console.log(T.html(
var template = T.html(
T.head( T.head(
T.title("This is a Test") T.title("This is a Test")
), ),
, {"class":"red green blue"}), , {"class":"red green blue"}),
T.a("LINK", {href:"www.google.com"}) T.a("LINK", {href:"www.google.com"})
) )
).toString());
);


console.log("Normal toString():\n------------------------------");
console.log(template.toString());

console.log("\n\nPretty String:\n-------------------------------");
console.log(template.toPrettyString());

正在加载...
取消
保存