Today I Learned

hashrocket A Hashrocket project

Inline Rendering in Phoenix

Phoenix has a html function that allows you to inline render html without the need of a template:

def index(conn, _params) do
  html(conn, """
    <script>console.log("Hello World!")</script>
  """
end
See More #elixir TILs
Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.