rendered
rendered

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.

Example:

Input
-- 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
Lang:
ftd
Output
Input
-- cb.code:
lang: java

if (condition) {
    // code block
    statement1;
    statement2;
    // ...
}
Lang:
ftd
Output
if (condition) {
    // code block
    statement1;
    statement2;
    // ...
}
Lang:
java
-- ds.rendered component is built using code-block package. To learn more about code-block usage and its properties - Click here.
Copyright ©2022. Fastn Inc.