From 1581cbdd1f79cb165679043f4a522dd20a425c98 Mon Sep 17 00:00:00 2001 From: Esmaeill Date: Thu, 9 Dec 2021 15:32:22 +0330 Subject: [PATCH] some changes --- example/doc/home.html | 2 +- example/var/home.txt | 42 ++++++++++++++++-------------------------- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/example/doc/home.html b/example/doc/home.html index 7f0c2f5..06a8fee 100644 --- a/example/doc/home.html +++ b/example/doc/home.html @@ -46,7 +46,7 @@

{{PAGE-SEG-NAME-1}}.

{{PAGE-SEG-TXT-1}} - {{FOR(2,8) + {{FOR(2,7)

{{PAGE-SEG-NAME}}.

diff --git a/example/var/home.txt b/example/var/home.txt index 2f45cd4..3b64424 100644 --- a/example/var/home.txt +++ b/example/var/home.txt @@ -4,12 +4,11 @@ {{POST-TITLE HTMixer}} ------------------------------------ {{PAGE-SEG-NAME-1 Introductions}} -{{PAGE-SEG-NAME-2 Compile}} -{{PAGE-SEG-NAME-3 Instructions}} -{{PAGE-SEG-NAME-4 Variable & Loop}} -{{PAGE-SEG-NAME-5 Generate}} -{{PAGE-SEG-NAME-6 Deploy}} -{{PAGE-SEG-NAME-7 Capability}} +{{PAGE-SEG-NAME-2 Instructions}} +{{PAGE-SEG-NAME-3 Variable & Loop}} +{{PAGE-SEG-NAME-4 Generate}} +{{PAGE-SEG-NAME-5 Deploy}} +{{PAGE-SEG-NAME-6 Capability}} ------------------------------------ {{TERMINAL-STYLE class="w3-border w3-black">> This tool is written in C language and uses GCC and Make -for compilation.

-

Compiled binary files for Windows and Ubuntu available in release section.

-Compile HTMixer.c : -
make
-

After compile source, executable binary files will be generated in build folder, do not remove that!

-}} ------------------------------------- -{{PAGE-SEG-TXT-3

-Use ./build/htmixer for mix Doc and Var files.

+Use htmixer for mix Doc and Var files.

Usage :
htmixer OUTPUT_FILE -v VAR -d DOC

@@ -44,16 +34,16 @@ Example : -v VAR1.txt VAR2.txt -d HEAD.html BODY.html FOOTER.html
}} ------------------------------------ -{{PAGE-SEG-TXT-4 +{{PAGE-SEG-TXT-3

Variable defined in var folder,but Loops defined in doc folder close to HTML files.

Variable:

Variables that are set in the var folder are replaced in the doc folder.

-Example set variable home.txt : +Example set variable home.txt :
{{PAGE-TITLE   HTMixer}}

-Example use variable home.html : +Example use variable home.html :
{{PAGE-TITLE}}
@@ -63,7 +53,7 @@ Example use variable home.html : +Example home.html :
{{ FOR(0,5)
5 Times from 0 to 4
@@ -77,23 +67,23 @@ Example
}} ------------------------------------ -{{PAGE-SEG-TXT-5 +{{PAGE-SEG-TXT-4

Generator use Make for running commands in the -Makefile. +Makefile.

Generate : -
make generate
+
make

In default the generated file stored in gh-pages folder, in head of Makefile you can changes the output folder.

}} ------------------------------------ -{{PAGE-SEG-TXT-6 +{{PAGE-SEG-TXT-5

Deployment use ghp-import for Github Pages.

Deployment :
make deploy
-

You can add CNAME by editing Deploy command in Makefile.

+

You can add CNAME by editing Deploy command in Makefile.

}} ------------------------------------ -{{PAGE-SEG-TXT-7 +{{PAGE-SEG-TXT-6

Variable:

This tool supports interdependent variables up to five steps.