瀏覽代碼

Updated the jst test.

dev-tmpl
Bryan Miller 7 年之前
父節點
當前提交
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());

Loading…
取消
儲存