Changelog
v2.4.0 (2016-01-21)
-
Enhancements
- Add
rel=nofollowauto generation for non-get links - Introduce
:selectedoption forselectandmultiple_select
- Add
-
Bug fixes
- Fix safe engine incorrectly marking safe code as unsafe when last expression is
<% ... %>
- Fix safe engine incorrectly marking safe code as unsafe when last expression is
v2.3.0 (2015-12-16)
- Enhancements
- Add
escape_javascript/1 - Add helpful error message when using unknown
@innerassign - Add
Phoenix.HTML.Format.text_to_html/2
- Add
v2.2.0 (2015-09-01)
- Bug fix
- Allow the
:nameto be given in forms. For this, using:nameto configure the underlying input name prefix has been deprecated in favor of:as
- Allow the
v2.1.2 (2015-08-22)
- Bug fix
- Do not include values in
password_input/3
- Do not include values in
v2.1.1 (2015-08-15)
- Enhancements
- Allow nil in
raw/1 - Allow block options in
label/3 - Introduce
:skip_deletedininputs_for/4
- Allow nil in
v2.1.0 (2015-08-06)
- Enhancements
- Add an index field to forms to be used by
inputs_for/4collections
- Add an index field to forms to be used by
v2.0.1 (2015-07-31)
- Bug fix
- Include web directory in Hex package
v2.0.0 (2015-07-30)
- Enhancements
-
No longer generate onclick attributes.
The main motivation for this is to provide support for Content Security Policy, which recommends disabling all inline scripts in a page.
We took the opportunity to also add support for data-confirm in
link/2.
-
v1.4.0 (2015-07-26)
- Enhancements
- Support
input_type/2andinput_validations/2as reflection mechanisms
- Support
v1.3.0 (2015-07-23)
- Enhancements
- Add
Phoenix.HTML.Form.inputs_for/4support - Add multiple select support
- Add reset input
- Infer default text context for labels
- Add
v1.2.1 (2015-06-02)
- Bug fix
- Ensure nil parameters are not discarded when rendering input
v1.2.0 (2015-05-30)
- Enhancements
- Add
label/3for generating a label tag within a form
- Add
v1.1.0 (2015-05-20)
- Enhancements
- Allow do/end syntax with
link/2 - Raise on missing assigns
- Allow do/end syntax with
v1.0.1
- Bug fixes
- Avoid variable clash in Phoenix.HTML engine buffers
v1.0.0
- Enhancements
- Provides an EEx engine with HTML safe rendering
- Provides a
Phoenix.HTML.Safeprotocol - Provides a
Phoenix.HTML.FormDataprotocol - Provides functions for generating tags, links and form builders in a safe way