3 ms·
A template engine has multiple use cases its author can not foresee, not just creating pages. Here they talk of using it for translation, with arbitrary user p
by coldtea 10y ago
A template engine has multiple use cases its author can not foresee, not just creating pages.
Here they talk of using it for translation, with arbitrary user provided strings for example. Another could use it to create an SQL helper (accounting themselves for injection) etc.
In any case, it should not contain dangerous helper methods of capabilities not fit for strictly templating, just because the native string class allows them.