Introduction

The tool that allows you to generate a static HTML site from different structured parts.

Many frameworks provide you generating websites with JavaScript. But what if you don't need it? What if you want to structure your HTML on differents parts or let's say components? So this instrument can help you.

The syntax of HTML templates and CSS was inspired by angular.

Quick start

npm install -g htmc-cli@latest
npx htmc init
  

In the current folder will be generated the initial file structure below:

- src/index.html
- src/style.css
- src/public/favicon.ico
- src/app/content/content.html
- src/app/content/content.css
  

Then you can run:

npx htmc compile
  

It will compile this app into dist folder.

You can use http-server to run this app:

npm install -g http-server
npx http-server dist
  

More details in the docs section.

test

examples