神刀安全网

Diamond: JavaScript rendering as fast as static content

:gem: diamond

superstatic ui rendering library:

  • fast or faster than same content rendered as a static document
  • supports nested sections
  • some simple data-bindng (think todo list)

diamond is an attempt to adapt the fastest vanilla js solution to data-binding and turn that into a rendering engine. For more technical details, seethis explanation.

Running the Project

Currently the project is in research and early development, so a bit lacking on packaging and deployment (but not tests!).

Start the gobble dev server via npm start and go to http://localhost:4567 to runs the tests.

The research directory is also served, checkout

localhost:4567/research/diamond.html for todo example.

If you want to build a stand-alone version of the library, run gobble build dist -f where dist is the name of the destination directory (the -f flag forces the directory contents to be recreated, so don’t try to build into an existing directory with other files you need to keep).

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Diamond: JavaScript rendering as fast as static content

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址