Added a new way to extend Smarty functionality using Smarty::addExtension() or Smarty::setExtensions(). Please see the docs for more information.
Custom tags can accept positional parameters, so you can write a block compiler that support this: {trans "Jack" "dull boy"}All work and no play makes %s a %s.{/trans}#164
Full support for ternary operator: {$test ? $a : $b} and {$var ?: $value_if_falsy}#881
Full support for null coalescing operator: {$var ?? $value_if_null}#882
Changed
All Smarty code is now in the \Smarty namespace. For simple use-cases, you only need to add
use \Smarty\Smarty; to your script and everything will work. If you extend Smarty or use
Smarty plug-ins, please review your code to see if they assume specific class or method names.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps smarty/smarty from 4.4.1 to 5.0.0.
Release notes
Sourced from smarty/smarty's releases.
... (truncated)
Changelog
Sourced from smarty/smarty's changelog.
... (truncated)
Commits
e161bab
Merge branch 'release/5.0.0'f8e63fc
version bump82397ec
Fixed that scoped variables would overwrite parent scope. (#954)17da1f5
Fix Too many shorthand attributes error when using a modifier as a function w...293bc20
fix release tooling to auto-delete changelog files818b96f
re-order changelog7b5ec8a
Merge branch 'release/5.0.0-rc3'4af5cc7
version bump41d80b9
Implemented support for substr, implode and json_encode as modifiers. (#940)2b0ba0e
Add template path to CompilerException to enable rich debug features (#936)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show