Releases: mhanberg/temple
Releases · mhanberg/temple
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.1
v0.12.0
v0.11.0
v0.10.0
v0.9.0
Full Changelog: v0.8.0...v0.9.0
v0.9.0-rc.0
Breaking Changes
- Requires Elixir 1.13+
- Whitespace control is now controlled by whether you use
do/endor:dosyntax. The:dosyntax will render "tight" markup. - Components are no longer module based. Any function can now be a component. Now to render a component, you pass a function reference
c &my_component/1.- Temple.Component has been removed, which removes the
render/1macro for defining a component. Now all you need to do is define a function and have it take anassignsparameter and call thetemple/1macro that is imported fromTemple. - The
defcompmacro has been removed, since now all you need is a function.
- Temple.Component has been removed, which removes the
- All Phoenix related things and dependencies have been removed. If you are going to use Temple with Phoenix, now use the temple_phoenix package instead.
- Config options have changed. Now all you can configure are the aliases (unchanged from before) and now you can configure the EEx.Engine to use. By default it uses
EEx.SmartEngine.
Please see the guides for more in depth migration information.