Packages

A simple Phoenix/Liveview client for [Altex](https://github.com/iboard/altex). Use it as a scaffold.

Current section

Files

Jump to
ax_webclient lib web_client_web views page_view.ex
Raw

lib/web_client_web/views/page_view.ex

defmodule WebClientWeb.PageView do
use WebClientWeb, :view
def markdown(assigns) do
{:ok, html, _} = Earmark.as_html(assigns.body)
~H"""
<div class="markdown">
<%= raw html %>
</div>
"""
end
end