Releases: mhanberg/temple
Releases · mhanberg/temple
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/end
or:do
syntax. The:do
syntax 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/1
macro for defining a component. Now all you need to do is define a function and have it take anassigns
parameter and call thetemple/1
macro that is imported fromTemple
. - The
defcomp
macro 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.
v0.8.0
-
Better whitespace handling and control (#145)
- Fine tune whitespace
The EEx outut now emits more human-readable and predictable formatting.
This includes proper indenting, at least for each "root" template.- Internal whitespace control
You can now use a bang version of any nonvoid tag to emit the markup
witout the internal whitespace. This means that there will not be a
newline emitted after the opening tag and before the closing tag.