title: Phoenix.Template.UndefinedError when rendering templates - Phoenix 1.3
body: <p>Following <a href="http://www.phoenixframework.org/docs/sending-email" rel="nofollow noreferrer">Sending Email with Phoenix</a> documentation. Having an Error </p>
  
  <blockquote>
    <p>Phoenix.Template.UndefinedError) Could not render "welcome.html" for MyApp.EmailView, please define a matching clause for render/2 or define a template at "lib/MyApp/web/templates". No templates were compiled for this module</p>
  </blockquote>
  
  <p>I've got <code>welcome.html</code> in <code>/templates/email</code> . If i however have <code>welcome.html</code> in <code>/templates</code>, i don't face the issue.</p>
  
  <p>... and the function with the error</p>
  
  <pre><code> #lib/Myapp/web/email.ex
   defmodule MyApp.Email do
   use Bamboo.Phoenix, view: MyApp.EmailView
  
   def welcome_text_email(email_address) do
    new_email()
    |&gt; to(email_address)
    |&gt; from("example@example.com")
    |&gt; subject("Welcome!")
    |&gt;  put_html_layout({MyApp.Web.LayoutView, "email.html"})
    |&gt; render("welcome.html",email_address: email_address)
  end
  
  
  #lib/Myapp/web/views/email_view.ex
  
  defmodule MyApp.EmailView do
   use MyApp.Web, :view
  end
  </code></pre>