Render HTML pages with Phoenix

I would like to create a static page generator with Phoenix (just for fun).

Is it possible to create HTML pages with it?

When I was looking for a solution I only found how to render static pages but not how you can generate pure HTML pages that could be independent of the app.

Anyone did something like this before or know a possible solution?

You don’t really need Phoenix for that. I built my own static site generator in Elixir and used plain EEx to generate the HTML.

1 Like

Sounds great!

Just checked the documentation.
So if I use eval_string I can generate an HTML string and then write it to a file, right?

Yep, that’s the idea.

Thank you for your help!

1 Like