highlighting ini-blocks

master
Sergey G. Brester 2019-03-14 21:18:14 +01:00
parent a4e8fbada4
commit dea9bc0ec2
1 changed files with 3 additions and 3 deletions

@ -9,7 +9,7 @@ Our implementation is more complex (allows includes, recursive interlaced substi
This case `cftoken = %(cftoken)s` is not allowed, because it will produce endless cycle (always substitute itself, again and again). This case `cftoken = %(cftoken)s` is not allowed, because it will produce endless cycle (always substitute itself, again and again).
As well as following is not allowed also (for the same reason): As well as following is not allowed also (for the same reason):
``` ```ini
A = %(B)s A = %(B)s
B = %(C)s B = %(C)s
C = %(A)s C = %(A)s
@ -19,14 +19,14 @@ Since we support an extensions called "known" with syntax `%(known/option)s`, af
So try your luck with `cftoken = %(known/cftoken)s` So try your luck with `cftoken = %(known/cftoken)s`
If you will set resp. deliver some init parameter from jail to filter or action, you can currently use another interpolation extension of us with another syntax `<option>` (Note: this is a run-time substitution): If you will set resp. deliver some init parameter from jail to filter or action, you can currently use another interpolation extension of us with another syntax `<option>` (Note: this is a run-time substitution):
``` ```ini
# action my-action.conf # action my-action.conf
[Definition] [Definition]
cftoken = <cftoken> cftoken = <cftoken>
[Init] [Init]
cftoken = default value cftoken = default value
``` ```
``` ```ini
# jail.local # jail.local
[my-jail] [my-jail]
banaction = my-action[cftoken="customized value"] banaction = my-action[cftoken="customized value"]