This commit is contained in:
Christian Grothoff 2023-05-13 22:04:14 +02:00
parent 40e45e7f5e
commit 89ed38c03c
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -5,7 +5,7 @@ template specification.
The main site for `mustach` is on [gitlab](https://gitlab.com/jobol/mustach). The main site for `mustach` is on [gitlab](https://gitlab.com/jobol/mustach).
The simpliest way to use mustach is to copy the files **mustach.h** and **mustach.c** The simplest way to use mustach is to copy the files **mustach.h** and **mustach.c**
directly into your project and use it. directly into your project and use it.
If you are using one of the JSON libraries listed below, you can get extended feature If you are using one of the JSON libraries listed below, you can get extended feature
@ -85,7 +85,7 @@ It then outputs the result of applying the templates files to the JSON file.
### Portability ### Portability
Some system does not provide *open_memstream*. In that case, tell your Some system does not provide *open_memstream*. In that case, tell your
prefered compiler to declare the preprocessor symbol **NO_OPEN_MEMSTREAM**. preferred compiler to declare the preprocessor symbol **NO_OPEN_MEMSTREAM**.
Example: Example:
CFLAGS=-DNO_OPEN_MEMSTREAM make CFLAGS=-DNO_OPEN_MEMSTREAM make
@ -163,7 +163,7 @@ Here is the summary.
Flag name | Description Flag name | Description
-------------------------------+------------------------------------------------ -------------------------------+------------------------------------------------
Mustach_With_Colon | Explicit tag substition with colon Mustach_With_Colon | Explicit tag substitution with colon
Mustach_With_EmptyTag | Empty Tag Allowed Mustach_With_EmptyTag | Empty Tag Allowed
-------------------------------+------------------------------------------------ -------------------------------+------------------------------------------------
Mustach_With_Equal | Value Testing Equality Mustach_With_Equal | Value Testing Equality
@ -180,7 +180,7 @@ For the details, see below.
### Explicit Tag Substitution With Colon (Mustach_With_Colon) ### Explicit Tag Substitution With Colon (Mustach_With_Colon)
In somecases the name of the key used for substition begins with a In somecases the name of the key used for substitution begins with a
character reserved for mustach: one of `#`, `^`, `/`, `&`, `{`, `>` and `=`. character reserved for mustach: one of `#`, `^`, `/`, `&`, `{`, `>` and `=`.
This extension introduces the special character `:` to explicitly This extension introduces the special character `:` to explicitly
@ -311,4 +311,3 @@ The table below summarize the changes.
fdmustach_json_c | mustach_json_c_fd fdmustach_json_c | mustach_json_c_fd
mustach_json_c | mustach_json_c_mem mustach_json_c | mustach_json_c_mem
mustach_json_c | mustach_json_c_write mustach_json_c | mustach_json_c_write