1 module Pass_label_value =
3 let l = [ label "label" . value "value" ]
5 test l get "" = { "label" = "value" }
7 test l put "" after rm "/foo" = ""
10 let ws = del /[ \t]+/ " "
11 let chain = [ key "RewriteCond" . ws .
12 [ label "eq" . store word ] . ws . store word .
13 ([ label "chain_as" . ws . del "[OR]" "[OR]" . value "or"]
14 |[ label "chain_as" . value "and" ]) ]
16 test chain get "RewriteCond %{var} val [OR]" =
17 { "RewriteCond" = "val"
19 { "chain_as" = "or" } }
21 test chain get "RewriteCond %{var} lue" =
22 { "RewriteCond" = "lue"
24 { "chain_as" = "and" } }
26 test chain put "RewriteCond %{var} val [OR]" after
27 set "/RewriteCond/chain_as" "and" = "RewriteCond %{var} val"