Using embed_templates in a Phoenix Component

But since they are appended, wouldn’t:

defmodule Web.Foo do
  use Web, :live_component

  embed_template "foo/*"

  def bar(%{id: nil} = assigns) do
    ~H"No ID"
  end
end

with:

# foo/bar.html.heex
Has ID!

result in:

defmodule Web.Foo do
  # ...

  def bar(%{id: nil} = assigns) do
    ~H"No ID"
  end

  def bar(assigns) do
    ~H"Has ID!"
  end
end

?

Or is it to do with it being overridable?