Render Phlex components from existing templates

Phlex components can be rendered from existing Erb, Slim, Haml, or Liquid views.

Erb
<h1>Hello</h1>
<%= render TailwindNav.new title: "Site Menu" do |it| %>
  <% it.item("/") { "Home" } %>
  <% it.item("/about") { "About" } %>
  <% it.item("/contact") { "Contact" } %>
<% end %>
Slim
h1 Hello
= render TailwindNav.new title: "Site Menu" do |it|
  - it.item("/") { "Home" }
  - it.item("/about") { "About" }
  - it.item("/contact") { "Contact" }
15 / 39