Releases: templado/engine
Release 4.1.1
Fixed
-
Regression from 4.0.5 in
SnippetRenderer
: A multi elementTempladoSnippet
only handled
the first element when applied in replace mode, ignoring the sibling elements -
TempladoSnippet
returned the replaced context node anchored in the wrong document
Release 4.1.0
Fixed
- The FormDataRenderer now also finds a
<form>
element when it's the document root element
Added
-
Introduced fluent interface for easier chaining to
Html::applySnippet()
,Html::applySnippets()
,Html::applyViewModel()
,
Html::applyFormData()
,Html::applyCSRFProtection()
, andHtml::applyTransformation()
-
Added
Html::toSnippet
to allow for easier re-use and nesting -
Added new convenience method
Html::applySnippet
to reduce boilerplate code when only adding a single snippet
Release 4.0.6
Fixed
- Consecutive nodes with the same property got incorrectly always treated as if in array processing mode and thus the presumed redundant ones removed.
Release 4.0.5
Fixed
- An invalid duplicate ID exception could be triggered in
SnippetRenderer
because of an invalid use of DOMNodelist, reported privately by @spriebsch
Release 4.0.4
Fixed
- Regression: A Null type check in
ViewModelRenderer
was not working correctly, producing false positives
Release 4.0.3
Fixed
- CSRFProtectionRenderer could have leaked an internal DOMXPath reference over multiple invocations
Changed
- The
ViewModelRenderer
now produces a more helpful error messages when it encounters unsupported types
Release 4.0.2
Fixed
- #17: CSRFPotectionRenderer fails to update existing token element when in xml namespace
Release 4.0.0
Changed
-
The
ViewModelRenderer
now ensures that text content can no longer be used to create syntactically invalid markup. While this is technically a bug fix, some may consider it a BC break as it also removes the "non-feature" of having a model returning xml/html markup.
If you need html fragments to be inserted please use a snippet instead. -
SnapshotDOMNodelist
no longer implements \Iterator and \Countable as those became superfluous
Fixed
ViewModelRenderer
: Might skip a node when processing arrays due to invalid use offoreach
on iteration
Release 3.0.1
Changed
- The
SnippetFileLoader
now returnsTempladoSnippts
for templado type snippets rather thanSimpleSnippets
, which never worked reliably due to DOMDocumentFragment issues.
Fixed
- Fix iterable detection in ViewModelRenderer
- Fix potential index underflow in SnapshotDomNodelist
Release 3.0.0
Changed
- Raise minimum PHP Version to 7.2
- Explicitly clear libxml error buffer (PHP internal global state for the win, Thanks @spriebsch)
Fixed
- Detect and prohibit potential endless recursion in SnippetRenderer (Thanks @spriebsch)