Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yin committed Nov 9, 2023
1 parent cbe16b3 commit 83ebcbb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/template-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,11 @@ return TurboStreamResponse(html)
```

The code in Django view would be much cleaner and easier to maintain.

## turbo_stream_from

This can help render `turbo-cable-stream-source` in Django template

```{note}
<turbo-cable-stream-source> is a custom element provided by [turbo-rails](https://github.com/hotwired/turbo-rails/blob/097d8f90cf0c5ed24ac6b1a49cead73d49fa8ab5/app/javascript/turbo/cable_stream_source_element.js)
```

0 comments on commit 83ebcbb

Please sign in to comment.