Repository: datanymizer/datanymizer (language: rust)

Issue:
Panic on TemplateTransformerTemplate
I am getting a panic when I try to store some values in the key-value store using the example mentioned in the docs.

### Config
```yml
tables:
  - name: User
    rules:
      phone:
        template:
          format: "{{ _1 }}{{ store_write key='user_names.' ~ prev.profile, value=_1 }}"
          rules:
            - phone:
                format: "+############"
...........
```

### Output 
``` bash
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Msg("Failed to parse 'TemplateTransformerTemplate'"), source: Some(Error { kind: Msg(" --> 1:24\n  |\n1 | {{ _1 }}{{ store_write key='user_names.' ~ prev.profile, value=_1 }}\n  |  ^---\n  |\n  = expected `or`, `and`, `not`, `<=`, `>=`, `<`, `>`, `==`, `!=`, `+`, `-`, `*`, `/`, `%`, a filter, or a variable end (`}}`)"), source: None }) }', datanymizer_engine/src/transformers/template/mod.rs:64:59
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
/bin/bash: line 54:    28 Aborted                 ./bin/pg_datanymizer -f backup.sql -c anonymizer/config.yml $SOURCE_POSTGRES_CONNECTION_STRING --accept_invalid_certs=true
```


Discussion / hints:
I will take a look.
There is an error in the docs - missing parentheses.
The correct example:
```yaml
tables:
  - name: User
    rules:
      phone:
        template:
          format: "{{ _1 }}{{ store_write(key='user_names.' ~ prev.profile, value=_1) }}"
          rules:
            - phone:
                format: "+############"
```

I will update the documentation.
Thank you for the bug report.

Fix patch:
diff --git a/docs/transformers.md b/docs/transformers.md
index dcc97a90..f66a7d78 100644
--- a/docs/transformers.md
+++ b/docs/transformers.md
@@ -297,7 +297,7 @@ tables:
       name:
         template:    
           # Save a name to the store as a side effect, the key is `user_names.<USER_ID>` 
-          format: "{{ _1 }}{{ store_write key='user_names.' ~ prev.id, value=_1 }}"
+          format: "{{ _1 }}{{ store_write(key='user_names.' ~ prev.id, value=_1) }}"
           rules:
             - person_name: {}
   - name: user_operations
@@ -305,7 +305,7 @@ tables:
       user_name:          
         template:
           # Using the saved value again  
-          format: "{{ store_read key='user_names.' ~ prev.user_id }}"
+          format: "{{ store_read(key='user_names.' ~ prev.user_id) }}"
 ```
 
 The full list of functions for working with the store:


Test patch: