Skip to content

Commit

Permalink
fix bug and add more info in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
liyanboy74 committed Dec 1, 2021
1 parent 72619d2 commit 7bda72b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
14 changes: 11 additions & 3 deletions htmixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,19 @@ int search_var_list(char* Name)
size_t get_me_out(char*buff)
{
size_t index=0;
int d=2;
int d=1;
while(d!=0)
{
if(buff[index]=='{')d++;
if(buff[index]=='}')d--;
if(buff[index]=='{'&&buff[index+1]=='{')
{
d++;
index++;
}
else if(buff[index]=='}'&&buff[index+1]=='}')
{
d--;
index++;
}
index++;
}
return index-2;
Expand Down
7 changes: 7 additions & 0 deletions var/home.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ Result:
{{ VAR-1-0}} <br>
{{ VAR-1-1}} <br>
</div>
<br>

<h2>Note:</h2>
<p>keep in mind that '<b>{{ </b>' and '<b>}}</b>' is a key command and should be used together!</p>
<p>If you want to use it, you have to type a space immediately after it '<b>{{ SPACE</b>' ,
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! '<b>}}</b>' </p>
}}
------------------------------------
{{SITE-CC
Expand Down

0 comments on commit 7bda72b

Please sign in to comment.