We’ll use node-static to create the instance, first load it from npm:
$ sudo npm install node-static
Create a server.js file in your root path:
To activate your static server, run:
$ node server.js
Now you’ll have access to all your static files inside /public folder, for example home.html -> http://localhost:1331/home.html.
Kit language brings imports and variables to your HMTL layouts, improving your workflow.
Kit is a “language” included in CodeKit that allows you to import parts of HTML and compile the result as .html archives. This is very useful for keep updated your layouts in large and complex structures with several files. Continue reading