plates
plates copied to clipboard
Classic escapers as loadable (loaded by default) extension
- Provides a better solution than https://github.com/thephpleague/plates/pull/312
- Allows developer to use the
eandescapehelper function names for custom functions with different signatures (classic escape functions can be dropped, but also not loaded by default at all using a new engine constructor flag) - Extends the
escapemethod in a retro-compatible way to allow for more customization
A note/reminder for https://github.com/thephpleague/plates/pull/314/commits/e418761cc8033d7afdd4beda6e1f332a3ee4d0d5
Maybe throwing a logic exception would be better if the $template property is not assigned. Template functions are meant to be called inside templates anyway.