Render Expects Template to be a String

Are you sure you are using correct render/2 function? Especially as in this case you should use put_view/2 or render/3.