0.6.0 • Published 4 years ago

html-bricks v0.6.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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

<nav>
  <a href="/">Home</a>
  <a href="/about">About</a>
  <a href="/contact">Contact</a>
<nav>

And you might need it inside your index.html

Assume that the navigation module is placed at src/navigation.module.html

<!DOCTYPE html>
<html>
  <head>
    <title>My awesome site!</title>
  </head>
  <body>
    <module>navigation.html</module>
  </body>
</html>

Intuitively, this would give you

<!DOCTYPE html>
<html>
  <head>
    <title>My awesome site!</title>
  </head>
  <body>
    <nav>
      <a href="/">Home</a>
      <a href="/about">About</a>
      <a href="/contact">Contact</a>
    <nav>
  </body>
</html>

License

This project is licensed under the MIT license.

0.6.0

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.3

4 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago