Render Markdown templates directly in Phoenix
Just published phoenix_markdown to hex. Makes Markdown files first class templates in Phoenix. Uses Earmark to render.
This means you can place *.html.md
files in your templates directories and use them directly from the controller, or as partials in other templates via render “some_markdown.html”
.
Also means the Markdown conversions are compiled. Very fast at runtime.