Table VCL features

Tables provide a means to declare a constant dictionary and to efficiently look up values in the dictionary.

Functions

Tables are declared as follows:

1
2
3
4
table <ID> {
  "key1":    "value 1",
  {"key2"}:  {"value 2"},
}

Either short-form or long-form strings are supported, as illustrated in the above example. The trailing comma after the final value is optional, but supported.