eml v0.6.0 Release Notes
-
Enhancements
- Introduced
use Eml.Language.Html
as prefered way of defining markup - Restructured README.md and added new content about precompiling
- It's now possible to pass content as the first argument of an element macro, ie.
div "Hello world!"
- Added
Eml.compile_to_eex/3
andEml.render_to_eex/3
- Introduced
Bug fixes
- Documentation corrections.
- Removed duplicate code in
Eml.defhtml/2
- Type specification fixes
Eml.parse/2
in some cases returned weird results when the input is a list- Template bindings were not correctly parsed
Backwards incompatible changes
- Removed
Eml.eml/2
in favor ofuse Eml.Language.Html
Eml.parse/2
now returns results in the form of{ :ok, res }
, in order to be consistent with render and compile functions- Unless the input of
Eml.parse/2
is a list, if the result is a single element,Eml.parse/2
now just returns the single element instead of always wrapping the result in a list
- Removed