소스 검색

Updated the jst test.

dev-tmpl
Bryan Miller 6 년 전
부모
커밋
8a4da0cf9a
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. +9
    -2
      jst/test.js

+ 9
- 2
jst/test.js 파일 보기

@@ -1,7 +1,7 @@

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

console.log(T.html(
var template = T.html(
T.head(
T.title("This is a Test")
),
@@ -14,4 +14,11 @@ console.log(T.html(
, {"class":"red green blue"}),
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…
취소
저장