       bar_width: @bar_width,
       percentages_and_grades: percentages_and_grades
     ]
-    render_badge_to_string(:all_deps, to_style(style), assigns)
+    badge_source = render_badge_to_string(:all_deps, to_style(style), assigns)
+
+    {badge_source, build}
   end
 
   #

    #end

    conn
    |> put_resp_content_type("image/svg+xml")
    |> send_resp(200, badge_source)
  end

      bar_width: @bar_width,
      percentages_and_grades: percentages_and_grades
    ]
    badge_source = render_badge_to_string(:prod_deps, to_style(style), assigns)

    {badge_source, build}
  end

  #
