mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-18 11:13:36 +08:00
8bc05e598d
* implement variadic placeholders imported snippets reflect actual lines in file * add import directive line number for imported snippets add tests for parsing * add realfile field to help debug import cycle detection. * use file field to reflect import chain * Switch syntax, deprecate old syntax, refactoring - Moved the import args handling to a separate file - Using {args[0:1]} syntax now - Deprecate {args.*} syntax - Use a replacer map for better control over the parsing - Add plenty of warnings when invalid placeholders are detected - Renaming variables, cleanup comments for readability - More tests to cover edgecases I could think of - Minor cleanup to snippet tracking in tokens, drop a redundant boolean field in tokens --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com> |
||
---|---|---|
.. | ||
addresses_fuzz.go | ||
addresses_test.go | ||
addresses.go | ||
builtins_test.go | ||
builtins.go | ||
directives_test.go | ||
directives.go | ||
httptype_test.go | ||
httptype.go | ||
options_test.go | ||
options.go | ||
pkiapp.go | ||
serveroptions.go | ||
tlsapp_test.go | ||
tlsapp.go |