-
Notifications
You must be signed in to change notification settings - Fork 192
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
Improve the explanation about backtick templates #5819
Improve the explanation about backtick templates #5819
Conversation
string s1 = string `line one \n rest of line 1 ${"\n"} second line`; | ||
io:println(s1); | ||
|
||
// You can use interpolations to add ` and $ characters. |
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.
Need to emphasize the characters using backticks. Need to check if/how this can be done.
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.
As far as I know we can't use markdown-ish formatting in side source code, they are rendered as is (example). I didn't add backticks around `
since it would be confusing to the user (In markdown I believe you have wrap ` in side double backticks ``)
Co-authored-by: Maryam Ziyad <[email protected]>
fffb649
to
0c7b30a
Compare
"isLearnByExample": true | ||
}, | ||
{ | ||
"name": "Backtick templates", | ||
"url": "backtick-templates", | ||
"name": "String templates", |
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.
I believe we need to handle redirection for this. cc @sm1990
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.
@heshanpadmasiri please share the old url and the new url to update the google indexing
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.
Old: https://ballerina.io/learn/by-example/backtick-templates/ new (after deploying, currently there is no such page) https://ballerina.io/learn/by-example/string-templates/
cab435b
to
489589e
Compare
489589e
to
8a67d59
Compare
Co-Authored-By: Maryam Ziyad <[email protected]>
8a67d59
to
714c721
Compare
Quality Gate passedIssues Measures |
3571e1d
Purpose
$subject
Resolves ballerina-platform/ballerina-dev-website#9281
Goals
Approach
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning