From 8784b1aaf458c6345b03af3dfdbf96f8690d2a2b Mon Sep 17 00:00:00 2001 From: Holger Hees Date: Mon, 16 Jun 2025 17:00:23 +0200 Subject: [PATCH] add python transformation examples (#2500) * add python transformation examples * change tab order --- configuration/transformations.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configuration/transformations.md b/configuration/transformations.md index 53bb92e0f..29de1599f 100644 --- a/configuration/transformations.md +++ b/configuration/transformations.md @@ -110,6 +110,16 @@ Note the overall syntax is the same. ::: +::: tab Python + +The script file name is `stringlength.py` and the transformation is `PY(stringlength.py)`. + +```python +"String has " + str(len(input)) + " characters" +``` + +::: + ::: tab JRuby The script file name is `stringlength.rb` and the transformation is `RB(stringlength.rb)`. @@ -161,6 +171,14 @@ JS(|"String has " + input.length + " characters") ::: +::: tab Python + +```python +PY(|"String has " + str(len(input)) + "characters") +``` + +::: + ::: tab JRuby ```ruby