DEV Community

RRJudah
RRJudah

Posted on

Build.js

Build.js is a great program that allows you to build your HTML via JavaScript. You can see the Github repository here. There is documentation in the README file.

Let's say you are using document.createElement to make every element and are using document.createTextNode to create every bit of text and using appendChild to append it all. No to hard, right! Now, imagine you are doing this, but for a whole webpage. That would not be hard, however, it would be very tedious. Instead of doing all of that you can use Build.js. It will do all of this for you in just a few lines. Now, that is writing HTML the smart way!

Top comments (0)