Oops, I typed my earlier response too fast without checking the version of the docs I was referencing - the EEx sigil used to be in Phoenix.HTML but was deprecated.
You could reuse the implementation, though. Apart from the Phoenix-specific engine, there’s no other coupling to that package: