Skip to content

Releases: lubosdz/html-templating-engine

1.0.7

Choose a tag to compare

@lubosdz lubosdz released this 16 May 18:38
  • added method reset()
  • support ternary operator ie. {{ expression ? trueCondition : falseCondition }}
  • improved support for public getters and properties

1.0.6

Choose a tag to compare

@lubosdz lubosdz released this 26 Dec 17:48
  • improved build-in directive replace
  • fix the IF condition expression containing double quotes
  • added tests, now passing PHP 7.0 - 8.4

1.0.5

Choose a tag to compare

@lubosdz lubosdz released this 29 Dec 09:05
  • exclude partially parsed placeholders from expression translator

1.0.4

Choose a tag to compare

@lubosdz lubosdz released this 11 Dec 18:27
  • refactored ELSEFOR behaviour - the condition will apply if no items to loop through
  • improved parsing REGEX expressions for more precise match
  • translation of placeholder keys now uses REGEX boundary \b to avoid naming conflicts
  • added build-in directive replace e.g. " {{ name | replace(WHAT, REPLACE) }} "
  • support for atomic booleans in IF condition eg. {{ if cars }} ... {{ endif }}
  • added test + improved documentation

1.0.3

Choose a tag to compare

@lubosdz lubosdz released this 22 Nov 13:10
  • fix eval error for numeric values starting with zero (should cast to string)
  • support importing subtemplates via {{ import file }}
  • support loading HTML content by supplying abs. path to template file
  • improved documentation

1.0.2

Choose a tag to compare

@lubosdz lubosdz released this 18 Sep 13:45
  • configurable argument separator
  • added built-in directives concat, trim
  • resolve deep-tree argument key conflicts
  • added tests, improved documentation, typehints

1.0.1

Choose a tag to compare

@lubosdz lubosdz released this 05 Sep 21:47

Support PHP 8.2

1.0.0

Choose a tag to compare

@lubosdz lubosdz released this 01 Feb 17:37
remove composer.lock