Skip to main content

examples/vanilla/lib/vanilla_example/web/page_controller.ex

defmodule VanillaExample.Web.PageController do
  use VanillaExample.Web, :controller

  def index(conn, _params) do
    html(conn, """
    <!doctype html>
    <html>
      <head>
        <meta charset=\"utf-8\">
        <script type=\"module\" src=\"/assets/js/app.js\"></script>
      </head>
      <body>
        <main id=\"app\">Vanilla example</main>
      </body>
    </html>
    """)
  end
end