Skip to main content
Version: 0.15.50

RenderedStringTemplateContent

class great_expectations.render.RenderedStringTemplateContent(string_template: dict, styling: Optional[dict] = None, content_block_type: str = 'string_template')#

RenderedStringTemplateContent is RenderedComponentContent that represents a templated string.

Parameters
  • string_template

    A dictionary containing:

    template: The string to perform substitution on. Variables are denoted with a preceeding $.

    params: A dictionary with keys that match variable names and values which will be substituted.

    styling: A dictionary containing styling information.

  • styling – A dictionary containing styling information.

  • content_block_type – The type of content block.

to_json_dict() dict[str, JSONValues]#

Returns a JSON-serializable dict representation of this RenderedStringTemplateContent.

Returns

A JSON-serializable dict representation of this RenderedStringTemplateContent.