A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
522B

  1. var T = require("./jst.js");
  2. var template = T.html(
  3. T.head(
  4. T.title("This is a Test")
  5. ),
  6. T.body(
  7. T.h1("Hello World!"),
  8. T.p(
  9. "This is a bit of text ",
  10. T.i("with italics!"),
  11. " so go figure!"
  12. , {"class":"red green blue"}),
  13. T.a("LINK", {href:"www.google.com"})
  14. )
  15. );
  16. console.log("Normal toString():\n------------------------------");
  17. console.log(template.toString());
  18. console.log("\n\nPretty String:\n-------------------------------");
  19. console.log(template.toPrettyString());