Browse Source

Updated the jst test.

dev-tmpl
Bryan Miller 5 years ago
parent
commit
8a4da0cf9a
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      jst/test.js

+ 9
- 2
jst/test.js View File



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…
Cancel
Save