You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/templating.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -820,15 +820,21 @@ Many generators (*those extending DefaultCodegen*) come with a small set of lamb
820
820
821
821
- `lowercase` - Converts all of the characters in this fragment to lower case using the rules of the `ROOT` locale.
822
822
- `uppercase` - Converts all of the characters in this fragment to upper case using the rules of the `ROOT` locale.
823
+
- `snakecase` - Converts text in a fragment to snake case. For example `once upon a time` to `once_upon_a_time`.
823
824
- `titlecase` - Converts text in a fragment to title case. For example `once upon a time` to `Once Upon A Time`.
825
+
- `kebabcase` - Converts text in a fragment to snake case. For example `Once Upon A Time` to `once-upon-a-time`.
826
+
- `pascalcase` - Converts text in a fragment to snake case. For example `once upon a time` to `OnceUponATime`.
824
827
- `camelcase` - Converts text in a fragment to camelCase. For example `Input-text` to `inputText`.
825
828
- `uncamelize` - Converts text in a fragment from camelCase or PascalCase to a string of words separated by whitespaces. For example `inputText` to `Input Text`.
829
+
- `forwardslash` - Replaces all occurrences of `\/`, `\` and `//` in a fragment by `/`.
830
+
- `backslash` - Replaces all occurrences `/` in a fragment by `\`.
831
+
- `doublequote` - Prepends `"` to the beginning and appends `"` to the end of a fragment.
826
832
- `indented` - Prepends 4 spaces indention from second line of a fragment on. First line will be indented by Mustache.
827
833
- `indented_8` - Prepends 8 spaces indention from second line of a fragment on. First line will be indented by Mustache.
828
834
- `indented_12` - Prepends 12 spaces indention from second line of a fragment on. First line will be indented by Mustache.
829
835
- `indented_16` -Prepends 16 spaces indention from second line of a fragment on. First line will be indented by Mustache.
830
836
831
-
Lambda is invoked by `lambda.[lambda name]` expression. For example: `{{#lambda.lowercase}}FRAGMENT TO LOWERCASE{{/lambda.lowercase}}` to lower case text between `lambda.lowercase`.
837
+
Some generators provide additional lambdas. Lambda is invoked by `lambda.[lambda name]` expression. For example: `{{#lambda.lowercase}}FRAGMENT TO LOWERCASE{{/lambda.lowercase}}` to lower case text between `lambda.lowercase`.
0 commit comments