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