Skip to content

Releases: dermatthes/text-template

Added return value append redirection

27 Jul 09:22
Compare
Choose a tag to compare

Return values of functions and sections can now be appended to the context:

{print >> var1}A{/print}
{print >> var1}B{/print}

Result: {=var1}

The output would be Result: AB

Added sections

25 Jul 14:02
Compare
Choose a tag to compare

Added

  • section feature

Shortened syntax and easier debugging

09 May 20:52
Compare
Choose a tag to compare
  • Shortened Syntax {if someVar} or {if !someVar} to check a variable is/is not set (MartinMystikJonas)
  • Fixed stripping newlines (MartinMystikJonas)
  • Added UndefinedVariableException

Bugfix release

29 Mar 08:03
Compare
Choose a tag to compare
  • Fixed: Wrapping of '{' #8
  • Added: Plugins

Improvements

02 Nov 14:46
Compare
Choose a tag to compare
  • Multiline support
  • If / else
  • break
  • user-defined functions

Refactored code, uses nette/tester, changed namespace

26 Jul 20:16
Compare
Choose a tag to compare

The Namespace changed from de\leuffen\text_template to Leuffen\TextTemplate

Added {else} and {elseif} to if - constructs

26 Jul 19:14
Compare
Choose a tag to compare

Now this works

{if name='abc'}
Say something
{elseif name='cda'}
Say all
{else}
Say nothing
{/if}