Skip to content

Version 4.0

Choose a tag to compare

@Ronef Ronef released this 30 Mar 00:43
· 37 commits to master since this release
  • * Attention! Backward compatibility is broken.
  • * Attention! (MODX)EvolutionCMS.libraries.ddTools >= 0.59 is required.
  • * \DDTools\Snippet::runSnippet is used instead of $modx->runSnippet to run snippets without DB and eval. This increases performance and saves server resources, but unfortunately you can't run snippets that do not use \DDTools\Snippet. Please give us feedback via Telegram chat if this is critical.
  • + Any executed snippet can return either a string or a native PHP array. It is convenient to use with “nested” placeholders (see README → Examples).
  • * Parameters → outputterParams:
    • * The following parameters have been renamed (with backward compatibility):
      • * tpl → outputterParams->tpl.
      • * tpl_placeholders → outputterParams->placeholders.
    • * outputterParams->tpl:
      • + Placeholders → [+ddRunSnippetsResult.all+]: The new placeholder. Contains results of all executed snippets combined by ''.
      • * Default value: Has been changed to '' (all snippets will be executed but nothing will be returned).
    • - outputterParams->placeholders: The outdated parameter name placeholders is no longer supported.
  • * README:
    • + Parameters description: Additional subheadings have been added.
    • * Examples:
      • + Some additional comments have been added.
      • * HJSON is used for all examples.
    • + Links → GitHub.