turbo_helper.renderers

Module Contents

Functions

render_turbo_stream(action, content, attributes[, ...])

render_turbo_frame(frame_id, content, attributes)

render_turbo_stream_from(stream_name_array)

render_turbo_stream_refresh(request_id, **attributes)

turbo_helper.renderers.render_turbo_stream(action, content, attributes, target=None, targets=None)
Parameters:
  • action (str)

  • content (Optional[str])

  • attributes (Dict[str, Any])

  • target (Optional[str])

  • targets (Optional[str])

Return type:

str

turbo_helper.renderers.render_turbo_frame(frame_id, content, attributes)
Parameters:
  • frame_id (str)

  • content (str)

  • attributes (Dict[str, Any])

Return type:

str

turbo_helper.renderers.render_turbo_stream_from(stream_name_array)
Parameters:

stream_name_array (List[Any])

turbo_helper.renderers.render_turbo_stream_refresh(request_id, **attributes)