Skip to main content

Fragments as functions

A function that returns a fragment is a reusable piece of markup. The fragment here contains a block cell of its own, which splices body in, so the outer cell needs a four-backtick fence:

Hello

Some body text.

Bye

More.