html-fusion

0.1.9 • Public • Published

html-fusion

Fuse multiple HTML files into one

Installation

npm i -D html-fusion

Usage

npx fusion <input_html> -o <output_html> Watch for changes and fuse automatically npx fusion <input_html> -o <output_html> -w <directory_to_watch>

Include other HTML files

<body>
  <!-- Include multiple HTML files (in same folder or in nested folders) -->
  {{
  components/title.html
  components/nav.html
  another_file.html
  }}
  
  <!-- Single HTML include -->
  {{ components/footer }}
</body>

Example of an HTML include

<!-- components/nav.html -->
<nav>
  <a>Content</a>
  <a>More stuff</a>
<nav>

`

Package Sidebar

Install

npm i html-fusion

Weekly Downloads

3

Version

0.1.9

License

MIT

Unpacked Size

11.3 kB

Total Files

13

Last publish

Collaborators

  • flxsu