|
123456789101112131415161718192021222324 |
-
- var T = require("./jst.js");
-
- var template = T.html(
- T.head(
- T.title("This is a Test")
- ),
- T.body(
- T.h1("Hello World!"),
- T.p(
- "This is a bit of text ",
- T.i("with italics!"),
- " so go figure!"
- , {"class":"red green blue"}),
- T.a("LINK", {href:"www.google.com"})
- )
- );
-
-
- console.log("Normal toString():\n------------------------------");
- console.log(template.toString());
-
- console.log("\n\nPretty String:\n-------------------------------");
- console.log(template.toPrettyString());
|