tmpl

Simple key-value templator
git clone https://git.sinitax.com/sinitax/tmpl
Log | Files | Refs | README | LICENSE | sfeed.txt

README (477B)


      1tmpl
      2====
      3
      4A simple key-value templator.
      5
      6usage
      7-----
      8
      9tmpl is key-value templator based on the C preprocessor. Variables are defined
     10via line-based conditional and assignment directives, and substituted
     11in-line for sequences matching #{NAME}.
     12
     13The following directives are supported:
     14	#ifeq, #ifdef, #else, #endif, #define, #default
     15
     16Templated values are read from the environment, the commandline (via -D)
     17or from a configuration file (provided with -C) in KEY=VALUE format.