HTMixer is a Static HTML page generator. This tool can combine different pages and add content to them. Each content can be specific to one or more templates. This tool is written in C language and can be used for any file, but customized for Github Pages.
Use htmixer for mix Doc and Var files.
Usage :Variable defined in var folder,but Loops defined in doc folder close to HTML files.
Variables that are set in the var folder are replaced in the doc folder.
Example set variable home.txt :Loops set in doc To repeat its internal code.
If the internal code use Variable, the Variable rename by loop counter.
For example [ VAR -> VAR-0 , VAR-1 , VAR-2 , ... , VAR-N ].
Generator use Make for running commands in the Makefile.
Generate :In default the generated file stored in gh-pages folder, in head of Makefile you can changes the output folder.
Deployment use ghp-import for Github Pages or use Github actions deploy pages for automation generate and deployment.
Deployment using ghp-import : (commented in Makefile)You can add CNAME by editing Deploy command in Makefile.
Deployment using Github actions: Example .
This tool supports interdependent variables up to five steps.
Example:It is also allowed tree Nested loop.
Example:Also it is available to skip add counter number by using # at end of name variable.
Example:First value in loop parametr can be a variable.
Example for blog post:keep in mind that '{{' and '}}' is a key command and should be used together!
If you want to use it, you have to type a space immediately after it '{{SPACE' , so as not to be confused with variables. Do not worry about space, because it does not affect the output. and finally, do not forget his friend! '}}'