a href="#{page_path(@conn, :index)}"
Generates the link as expected.
<a href="#{page_path(@conn, :index)}">
Causes the tag to be rendered out in plain text onto the page. In addition, ANY other tags or HTML style comments in the same block (indentation level) will not render correctly either.
Example:
p This is a test <a href="#{'test'}">Here's a link</a> <!-- and a comment --> <img src="and_a_picture.jpg" />
p <a href="#">this link works</a>
a href="#{'blah'}" and so does this one
p This is a test <a href="without">an elixir tag</a> <!-- embedded in the html -->

a href="#{page_path(@conn, :index)}"Generates the link as expected.
<a href="#{page_path(@conn, :index)}">Causes the tag to be rendered out in plain text onto the page. In addition, ANY other tags or HTML style comments in the same block (indentation level) will not render correctly either.
Example: