• josé bollo's avatar
    Adds a compilation option to remove extensions · f3194477
    josé bollo authored
    When compiling mustach.c or mustach-json-c.c,
    extensions can be removed by defining macros
    using option -D.
    
    The possible macros are:
    
    - NO_COLON_EXTENSION_FOR_MUSTACH
    
        This macro remove the ability to use colon (:)
        as explicit command for variable substituion.
        This extension allows to have name starting
        with one of the mustach character :#^/&{=
    
    - NO_EQUAL_VALUE_EXTENSION_FOR_MUSTACH
    
        This macro allows the tool to check the whether
        the actual value is equal to an expected value.
        This is useful in {{#key=val}} or {{^key=val}}
        with the corresponding {{/key=val}}.
        It can also be used in {{key=val}} but this
        doesn't seem to be useful.
    
    - NO_EXTENSION_FOR_MUSTACH
    
        This macro disables any current or futur
        extension.
    Signed-off-by: josé bollo's avatarJosé Bollo <jobol@nonadev.net>
    f3194477
Name
Last commit
Last update
test1 Loading commit data...
test2 Loading commit data...
test3 Loading commit data...
test4 Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
LICENSE-2.0.txt Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
mustach-json-c.c Loading commit data...
mustach-json-c.h Loading commit data...
mustach-tool.c Loading commit data...
mustach.c Loading commit data...
mustach.h Loading commit data...