In this section, we will learn more about -- ds.rendered
component and its
usage.
ds.rendered
component is used to demonstrate the code snippet and its output.
If you want to show a fastn code snippet with its output to your users then you
should use -- ds.rendered
component.-- ds.rendered:
-- ds.rendered.input:
-- cb.code:
lang: java
if (condition) {
// code block
statement1;
statement2;
// ...
}
-- ds.rendered.output:
-- cb.code:
lang: java
if (condition) {
// code block
statement1;
statement2;
// ...
}
-- end: ds.rendered.output
-- end: ds.rendered
-- cb.code:
lang: java
if (condition) {
// code block
statement1;
statement2;
// ...
}
if (condition) {
// code block
statement1;
statement2;
// ...
}
-- ds.rendered
component is built using code-block package.
To learn more about code-block usage and its properties - Click here.