html-bricks
The easiest way to compile modularized html files into flat html files 😊
Take a look at the documentation or clone the template repository to get started.
Installation
npm install --save-dev html-bricks
Example
If you have multiple HTML pages and want to share certain parts of the markup between pages, you can do so very simply with html-bricks
.
A nav bar might look like this
Home About Contact
And you might need it inside your index.html
Assume that the navigation module is placed at src/navigation.module.html
My awesome site! navigation.html
Intuitively, this would give you
My awesome site! Home About Contact
License
This project is licensed under the MIT license.