Commits
- Commit:
2c16dbd54867d575f37e145d9f15a0e62e15b025
- From:
- Omar Polo <op@omarpolo.com>
- Date:
macro names can be reserved words
- Commit:
4ede0fe4957e52efbfce0b82488f98e34059237b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix macro example
- Commit:
eaf7f776f1db3f6147cb32e26be10a594c6379b4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document the c-like handling of strings
- Commit:
bfb076ed7ee61a93cc6ae701b07c3d3bc7a006aa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't expand macros inside the quotes
Now that we have this auto concat string thingy, macros can simply
expand to standalone strings in place, as single words.
Forgot to point it out in previous commits, but now we can
cert = "/etc/keys"
server "foo" {
cert $cert "/foo.crt"
...
}
- Commit:
7252049dd77e4927049f698d06d7ebc8fbc3e3df
- From:
- Omar Polo <op@omarpolo.com>
- Date:
align
- Commit:
98f521782249d75bc807e5686266f65850098fd8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[config] concat two or more strings next to each others
- Commit:
8b743ddacb8cac52c0125917c80790073bffd343
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document macros: both -D and syntax
- Commit:
6b86655a10753eae668e839207692d9d43138679
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't require the strict order macro > options > servers
- Commit:
f98e9045aef95fe28972d477ee549974c7cefb9f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add -D to define macros from the cmd line
- Commit:
3b21cca385c403247960cfe9385dda1d56f28670
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow to define macros in the config file
Macros can be defined at the top of the configuration file:
dir = "/var/gemini"
cert = "/etc/keys"
and re-used later, for example
server "foo" {
root "$dir/foo" # -> /var/gemini/foo
cert "$cert/foo.pem" # -> /etc/keys/foo.pem
}
- Commit:
fafc6849577c9374ee6acb8ae7f30104464bb08e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
trailing whitespaces
- Commit:
8235a81c8f7f58eaa08655147963936a2290f691
- From:
- Omar Polo <op@omarpolo.com>
- Date:
give a name to the anonymous union
- Commit:
0be2a537e6e2b336a6e46cd1f5a13663ea939ea4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync the usage; while there also change order and capitalize
- Commit:
ba65dcc8fabd45f65cc56f691ee1770ad67b2d9b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mention -V/--version and --help in the manpage
- Commit:
fdb43a4c0e347c20c0f13c3145165393c6c10883
- From:
- Omar Polo <op@omarpolo.com>
- Date:
define GMID_STRING and reuse-it
GMID_VERSION follows the CGI/FastCGI style, i.e. project_name/version.
Define GMID_STRING with a more "human" variant "project_name version",
and reuse that in the --help and --version codepath.