Skip to content

Commit

Permalink
Add 'Rendering Multiple Turbo Streams in a single response' guide stub
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Dec 10, 2023
1 parent 5aa3c5d commit 0caa388
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "Rendering Multiple Turbo Streams in a single response"
framework: rails
library: turbo-rails
---

<%= render Page::ContainerComponent.new(page: current_page) do |page| %>
<% page.with_title(title: current_page.data.fetch("title")) %>

<%= render Page::ContributeComponent.new(file: current_page.asset.path.path) %>
<% end %>

0 comments on commit 0caa388

Please sign in to comment.