StringTemplate
StringTemplate copied to clipboard
A death-simple string templating engine for php.
I have been looking for a script which would also process conditional statements in string. for e.g: $string = 'My name is {name} and I scored {if: score>10 then well...
Passing null to parameter #2 ($replace) of type array|string is deprecated
The only thing that I really miss from this template engine is a support for different placeholders for booleans. For example: ```php $engine->render("The engine is turned {status|on|off}.", ['status' => true]);...