+
<%= @recipe.result.description %>
+
+
+ Prep: <%= @recipe.result.prep_time %> min
+ Cook: <%= @recipe.result.cook_time %> min
+ Total: <%= @recipe.result.total_time %> min
+ Serves: <%= @recipe.result.servings %>
+
+
+
+
Ingredients
+
+ <%= for ingredient <- @recipe.result.ingredients do %>
+
+
+ <%= if ingredient.quantity != nil do %>
+ <%= to_string(ingredient.quantity) %>
+ <% end %>
+
+ <%= ingredient.unit %> <%= ingredient.name %>
+
+ <% end %>
+
+
+
+
+
Instructions
+
+ <%= for {step, index} <- Enum.with_index(@recipe.result.instructions) do %>
+ -
+ <%= index + 1 %>
+
<%= step.step %>
+
+ <% end %>
+
+
+