What the purpose of `phoenix_html` inside the `assets/js/app.js`

In this post scan ahead to “Bonus” for an explanation.

https://github.com/phoenixframework/phoenix_html

Collection of helpers to generate and manipulate HTML contents.

So phoenix_html.js is the JavaScript support for Phoenix.HTML

The only thing that is currently left of the static assets guide is this old blog post (it references webpack 1.11 which puts is around 2015-08-06 to 2015-08-25 which suggests Phoenix v0.16.1 - v1.0.0 - which is probably why it got pulled from the guides as it is considered out-of-date with reference to v1.3).

3 Likes