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