A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
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());