README.md in fluent-plugin-forest-0.1.4 vs README.md in fluent-plugin-forest-0.2.0

- old
+ new

@@ -96,12 +96,62 @@ compress no path /var/archive/__TAG__.*.log </case> </match> +Version 0.2.0 or later, subsections adding/overwriting are supported. About the case below, three `<store>` subsections are defined for `search.**` pattern. + + <match service.*> + type forest + subtype copy + <template> + <store> + type file + path /path/to/copy1 + </store> + <store> + type file + path /path/to/copy2 + </store> + </template> + <case search.**> + <store> + type file + path /path/to/copy3 + </store> + </case> + </match> + +Subsections with same arguments will be overwritten. See this example: + + <match service.*> + type forest + subtype route + <template> + <route {search,admin}.a> + add_prefix first + </route> + <route {search,admin}.b> + add_prefix second + </route> + <route {search,admin}.c> + add_prefix third + </route> + <route {search,admin}.*> + add_prefix extra + </route> + </template> + <case admin.*> + <route {search,admin}.*> + add_prefix other + </route> + </case> + </match> + +In this case, `<route {search,admin}.*>` subsection will be overwritten to add prefix 'other' for tag `service.admin.*`. + ## TODO -* consider what to do next * patches welcome! ## Copyright * Copyright (c) 2012- TAGOMORI Satoshi (tagomoris)