-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add string template splitting section #5688
Conversation
@@ -1,3 +1,4 @@ | |||
$ bal run backtick_templates.bal | |||
Hello, James | |||
Backtick:` | |||
A string-template-expr is evaluated by evaluating the expression in each interpolation in the order in which they occur. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems the string is not split into a new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore the comment please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a second thought, I feel having newline also in a middle of the string template and showing the output is also worth, as it is useful for examples like email content. may not be related to the 120 character formatting issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The string s2
here, https://ballerina.io/learn/by-example/backtick-templates/. Isn't it kind of similar to using special characters like new line in a string template.
Co-authored-by: Maryam Ziyad <[email protected]>
Quality Gate passedIssues Measures |
7ecfd7c
Purpose
Closes #ballerina-platform/ballerina-dev-website#9061
Goals
Approach
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning