express.render.text

express.render.text(self, _fn=None, *, inline=False)

Reactively render text.

When used in Shiny Express applications, this defaults to displaying the text as normal text on the web page. When used in Shiny Core applications, this should be paired with output_text in the UI.

Parameters

inline: bool = False

(Express only). If True, the result is displayed inline. (This argument is passed to output_text.)

Returns

Type Description
A decorator for a function that returns a string.

Tip

The name of the decorated function (or @output(id=...)) should match the id of a output_text container (see output_text for example usage).

See Also

  • code
  • output_text