Skip to content

Releases: templado/engine

Release 4.1.1

25 Aug 20:27
4.1.1
Compare
Choose a tag to compare

Fixed

  • Regression from 4.0.5 in SnippetRenderer: A multi element TempladoSnippet 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

10 Aug 21:30
4.1.0
Compare
Choose a tag to compare

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(), and Html::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

20 Mar 00:07
4.0.6
Compare
Choose a tag to compare

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

09 Jan 22:39
4.0.5
Compare
Choose a tag to compare

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

25 Oct 14:40
4.0.4
Compare
Choose a tag to compare

Fixed

  • Regression: A Null type check in ViewModelRenderer was not working correctly, producing false positives

Release 4.0.3

08 Oct 09:28
4.0.3
Compare
Choose a tag to compare

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

21 Nov 22:31
4.0.2
Compare
Choose a tag to compare

Fixed

  • #17: CSRFPotectionRenderer fails to update existing token element when in xml namespace

Release 4.0.0

13 Sep 17:35
4.0.0
Compare
Choose a tag to compare

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 of foreach on iteration

Release 3.0.1

26 May 21:37
3.0.1
Compare
Choose a tag to compare

Changed

  • The SnippetFileLoader now returns TempladoSnippts for templado type snippets rather than SimpleSnippets, which never worked reliably due to DOMDocumentFragment issues.

Fixed

  • Fix iterable detection in ViewModelRenderer
  • Fix potential index underflow in SnapshotDomNodelist

Release 3.0.0

16 May 22:59
3.0.0
Compare
Choose a tag to compare

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)